cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grzegorz "Goliatus" Tańczyk <golia...@warsztat.pac.pl>
Subject Re: Apache and ProxyPass
Date Sun, 05 Sep 2004 17:45:35 GMT
Witaj Grzegorz,

Ok problem solved:
ProxyPreserveHost On

But here is rest of this story:

<VirtualHost www.domain.pl:80>
RewriteEngine On
RewriteRule "^/(.*)" "http://localhost:8080/domain/$1" [P]

ProxyPassReverse / http://localhost:8080/domain/
ProxyErrorOverride On
ProxyPreserveHost on
</VirtualHost>

<VirtualHost alias.domain.pl:80>
RewriteEngine On

RewriteRule "^/(.*)" "http://localhost:8080/domain/alias/$1" [P]

ProxyPassReverse / http://localhost:8080/domain/alias/
ProxyErrorOverride On
ProxyPreserveHost on
</VirtualHost>

www.domain.pl/alias/sth.html <- this one is ok
alias.domain.pl/sth.html <- this one is wrong, because cocoon says
that requested url was: alias.domain.pl/alias/sth.html
It should be: alias.domain.pl/sth.html

How to fix it?




W Twoim liście datowanym 5 września 2004 (19:13:10) można przeczytać:

GGT> Witajcie!

GGT>  I have problem with configuring apache after
GGT>  reading: http://wiki.apache.org/cocoon/VirtualHost

GGT>  Problem is with request input module and get-requested-url variable.
GGT>  It starts with http://localhost. How to configure apache to have
GGT>  correct request-url in sent by browser? My configuration contains:
GGT> <VirtualHost www.mydomain.pl:80>
GGT> ProxyPass / http://localhost:8080/mydomain/
GGT> ProxyPassReverse / http://localhost:8080/mydomain/
GGT> ProxyErrorOverride On
GGT> </VirtualHost>

GGT> Request input module in cocoon says that requested url starts with
GGT> http://localhost:8080 not http://www.mydomain.pl. What to do?




-- 
Pozdrowienia,
 Grzegorz                            mailto:goliatus@warsztat.pac.pl


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message