httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Covener" <cove...@gmail.com>
Subject Re: [users@httpd] disable access to different parts of the application when using reverse proxy
Date Mon, 25 Aug 2008 12:05:04 GMT
On Sun, Aug 24, 2008 at 11:26 PM, Meir Yanovich <meiry242@gmail.com> wrote:
> Hello all
> im using apache as reverse proxy to my application that is sitting in
> tomcat using mod_jk as the connector
> now the reverse proxy is working ok except one thing that i will ask later ,
> the apache redirect to the application pages as i configure but when i
> type manally urls to other parts of my application
> using the the apache ip:port i still can access , so my question is
> how can i prevent access from apache to other parts of my application
> .
>
> my configuration is simple like this:
> ProxyRequests off
> ProxyPass /dir/ http://app1:8080/jsp/dir/mypage.jsp
> ProxyPassReverse /dir/ http://app1:8080/jsp//dir/mypage.jsp
>
> and my second question is when using mod_proxy for example when i type :
> www.myhost.com/dir <--- whiteout the slash in the end i dont get the
> redirection right only when i type
> www.myhost.com/dir/ <-- with the slash in the end , how can i add this
> slash automatically ?

Try droppign the trailing slash on your ProxyPass and ProxyPassReverse
directives.

-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message