httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michele Mase'" <michele.m...@gmail.com>
Subject [users@httpd] Smarter rewrite rule
Date Thu, 22 Sep 2011 06:23:17 GMT
Hi folks, I'using a lazy rule on my site:
...
ProxyPass /app1/ http://192.168.1.1/app1/
ProxyPassReverse /app1/ http://192.168.1.1/app1/
RewriteRule ^/app1$ /app1/ [R]
ProxyPass /app2/ http://192.168.1.1/app2/
ProxyPassReverse /app2/ http://192.168.1.1/app2/
RewriteRule ^/app2$ /app2/ [R]
....
ProxyPass /appn/ http://192.168.1.1/appn/
ProxyPassReverse /appn/ http://192.168.1.1/appn/
RewriteRule ^/appn$ /appn/ [R]
...
The list is from app1 till app60

I have almost 60 rules and the conf file becomes difficult to read and edit
(error prone)
How could I use a smarter one?
Regards
MM

Mime
View raw message