Re: [users@httpd] Smarter rewrite rule

2011-09-22 Thread Jorge Schrauwen
Alternatively you can also use mod_macro (http://www.cri.ensmp.fr/~coelho/mod_macro/) Personally I'm quite fond of this little module! ProxyPass $path/ $backend ProxyPassReverse $path/ $backend RewriteRule ^$path$ /$path/ [R] AppProxy /pippo http://192.168.1.1/ AppProxy /pluto ht

Re: [users@httpd] Smarter rewrite rule

2011-09-22 Thread Michele Mase'
So if app1 app2 and appn are pippo pluto paperino, the rules will be: ProxyPassMatch /(pippo|pluto|paperino) http://192.168.1.1/$1 RewriteRule ^/(pippo|pluto|paperino)$ /$1/ [R] ProxyPassReverse / http://192.168.1.1/ Correct? On Thu, Sep 22, 2011 at 12:41 PM, Rich Bowen

Re: [users@httpd] Smarter rewrite rule

2011-09-22 Thread Rich Bowen
On Sep 22, 2011, at 2:23 AM, Michele Mase' wrote: > 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 /ap

Re: [users@httpd] Smarter rewrite rule

2011-09-22 Thread Igor Cicimov
RewriteRule ^/(.*)$ /$1/ [R] in general or if you need only for appN where N is one or more digits then RiwriteRule ^/(app\d+)$ /$1/ [R] Not tested though Im writing this from my phone. On Sep 22, 2011 4:23 PM, "Michele Mase'" wrote: > Hi folks, I'using a lazy rule on my site: > ... > ProxyPas

[users@httpd] Smarter rewrite rule

2011-09-21 Thread Michele Mase'
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] Prox