You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by peter pilsl <pi...@goldfisch.at> on 2003/06/17 12:36:32 UTC

[users@httpd] apache2 - mod_proxy - troubles

I use apache2 and mod_proxy and run into two related problems:

problem1:

easy example. Lets say I've a local apache2 running on intranet.local and want
to access the outside page www.goldfisch.at (realworld-example)

ProxyPass               /goldfisch      http://www.goldfisch.at
ProxyPassReverse        /goldfisch      http://www.goldfisch.at

accessing intranet.local/goldfisch  brings up the expected result : the same as
www.goldfisch.at.

But as soon as I click the link "partners" I come to
intranet.local/partners.html instead of intranet.local/goldfisch/partners.html
and therefore get an 404-error.

The link to partners.html is a simple relative url  <a href="partners.html"> so
I dont understand this behaviour.


problem2:

Same environment as above, but now I want to proxy "absolute" urls like <a
href="/index.html"> that have a leading '/'. Is this possible too ?

thnx,
peter
 


-- 
IT-Consulting
mag. peter  pilsl
tel:+43-699-1-3574035
fax:+43-699-4-3574035
pilsl@goldfisch.at
http://www.goldfisch.at




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


RE: [users@httpd] apache2 - mod_proxy - troubles

Posted by Jeff Cohen <su...@gej-it.com>.
ProxyPass               /goldfisch      http://www.goldfisch.at/
ProxyPassReverse        /goldfisch      http://www.goldfisch.at/

That should solve your issue.

All the best,
Jeff Cohen
Support@GEJ-IT.com
Tel. (416) 917-2324
www.GEJ-IT.com
GEJ-IT Networks!



> -----Original Message-----
> From: peter pilsl [mailto:pilsl@goldfisch.at]
> Sent: Tuesday, June 17, 2003 6:37 AM
> To: users@httpd.apache.org
> Subject: [users@httpd] apache2 - mod_proxy - troubles
> 
> 
> I use apache2 and mod_proxy and run into two related problems:
> 
> problem1:
> 
> easy example. Lets say I've a local apache2 running on intranet.local and
want
> to access the outside page www.goldfisch.at (realworld-example)
> 
> ProxyPass               /goldfisch      http://www.goldfisch.at
> ProxyPassReverse        /goldfisch      http://www.goldfisch.at
> 
> accessing intranet.local/goldfisch  brings up the expected result : the
same as
> www.goldfisch.at.
> 
> But as soon as I click the link "partners" I come to
> intranet.local/partners.html instead of
intranet.local/goldfisch/partners.html
> and therefore get an 404-error.
> 
> The link to partners.html is a simple relative url  <a
href="partners.html"> so
> I dont understand this behaviour.
> 
> 
> problem2:
> 
> Same environment as above, but now I want to proxy "absolute" urls like <a
> href="/index.html"> that have a leading '/'. Is this possible too ?
> 
> thnx,
> peter
> 
> 
> 
> --
> IT-Consulting
> mag. peter  pilsl
> tel:+43-699-1-3574035
> fax:+43-699-4-3574035
> pilsl@goldfisch.at
> http://www.goldfisch.at
> 
> 
> 
> 
> ---------------------------------------------------------------------
> 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


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