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

Reply via email to