This is a discussion on redirect from one apache2 to another apache2 with errors within the Apache Web Server forums, part of the Web Server and Related Forums category; Hey ! Hey I' am use linux suse 10 ! with apache2 ! I want to redirect a request from a webserver to ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hey !
Hey I' am use linux suse 10 ! with apache2 ! I want to redirect a request from a webserver to another webserver. The other webserver direct the request to an vmware virtualguest. I test it only with one webserver, it works. Now I want to create a request from external. The request goes first to an apache webserver (A). The apche webserver should identificat the tail url and should redirect the request to a second websever (B). I have change the httpd.conf: <VirtualHost 192.168.0.1:80 192.168.1.2:80 192.168.0.3:80> # General setup for the virtual host DocumentRoot "/srv/www/htdocs" ServerName www.mywebpage.de ServerAdmin webmaster@mywebpage.de ErrorLog /var/log/apache2/error_log LogLevel warn TransferLog /var/log/apache2/accessicc_log #<IfModule mod_proxy.c> ProxyRequests ON ProxyPass /foo/LogIn.jsp http://192.168.0.6 ProxyPassReverse /foo/LogIn.jsp http://192.168.0.6 #</IfModule> .... -------------------------------- But it doesn't work, i get the error message with my browser. Access denied ! Error 403 What is going wrong ? I need a right solution for my problem ! |
|
|||
|
Davide Bianchi schrieb: > On 2006-07-07, horst <horst_skoff@yahoo.de> wrote: > > #<IfModule mod_proxy.c> > > ProxyRequests ON > > ProxyPass /foo/LogIn.jsp http://192.168.0.6 > > ProxyPassReverse /foo/LogIn.jsp http://192.168.0.6 > > #</IfModule> > > Have you tryed with > > <Location /foo/LogIn.jsp> > ProxyVia Off > ProxyPass /foo/LogIn.jsp http://192.168.0.6/foo/LogIn.jsp > ProxyPassReverse /foo/LogIn.jsp http://192.168.0.6/foo/LogIn.jsp > </Location> > > BTW, if the target is really a JSP page maybe you'd better use > mod_jk to talk directly with the Java server. No because: I get in the message ProxyVia Off is not allowed But i have some tail solution: I changed in: #<IfModule mod_proxy.c> ProxyRequests ON ProxyPass /foo/ http://192.168.0.6/foo/ ProxyPassReverse /foo/ http://192.168.0.6/foo/ #</IfModule> Now I get the page from external. http://www.mywebpage/LogIn.jsp But after my login the url in the browser is: http://192.168.0.6/foo/mysecondpage.jsp and not http://www.mywebpage/mysecondpage.jsp Do you have a solution for that? |