You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by qMax <qm...@mediasoft.ru> on 2005/03/16 14:21:43 UTC
mod_proxy and url encoding problems
I finally have set up httpd with mod_proxy,
and mapping urls "http://host/" to "http://localhost:8080/mydefaultpub/live/"
and "http://host/authoring/" to "http://localhost:8080/mydefaultpub/authoring/"
There're couple of PassProxy and Rewrite directives in VirtualHost
section:
ProxyPass /lenya/ http://localhost:8080/lenya/
ProxyPassReverse /lenya/ http://localhost:8080/lenya/
ProxyPass /authoring/ http://localhost:8080/main/authoring/
ProxyPassReverse /authoring/ http://localhost:8080/main/authoring/
ProxyPass /admin/ http://localhost:8080/main/admin/
ProxyPassReverse /admin/ http://localhost:8080/main/admin/
ProxyPass /info-authoring/ http://localhost:8080/main/info-authoring/
ProxyPassReverse /info-authoring/ http://localhost:8080/main/info-authoring/
ProxyPass / http://localhost:8080/main/live/
ProxyPassReverse / http://localhost:8080/main/live/
RewriteEngine on
RewriteRule ^/main/live/(.*)$ $1 [R]
RewriteRule ^/main/authoring/(.*)$ authoring/$1 [R]
RewriteRule ^/main/info-authoring/(.*)$ info-authoring/$1 [R]
RewriteRule ^/main/admin/(.*)$ admin/$1 [R]
Please correct me if there's something wrong here.
All this works, but all urls are urlencoded twice:
For instance "/" in nodeid became %252F instead of %2F.
All national characters has became into %25XX instead of %XX.
This happens when rewrite rules applying
(proxying w/out rewriting works fine).
I can't figure out how to get rid of it.
And related question: why all info-authoring forms use method GET,
and not POST ?
--
qMax
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
(solved) Re: mod_proxy and url encoding problems
Posted by qMax <qm...@mediasoft.ru>.
Wednesday, March 16, 2005, 7:21:43 PM, qmax@mediasoft.ru wrote:
q> All this works, but all urls are urlencoded twice:
q> For instance "/" in nodeid became %252F instead of %2F.
q> All national characters has became into %25XX instead of %XX.
q> This happens when rewrite rules applying
q> (proxying w/out rewriting works fine).
q> I can't figure out how to get rid of it.
I found option "NE" for rewrite rules.
Sorry for bothering with lame questions.
But it's strange anyway.
--
qMax
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org