redirect from one apache2 to another apache2 with errors

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 ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-07-2006
horst
 
Posts: n/a
Default redirect from one apache2 to another apache2 with errors

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 !

  #2 (permalink)  
Old 07-07-2006
horst
 
Posts: n/a
Default Re: redirect from one apache2 to another apache2 with errors


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?

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:49 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0