httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Ashutosh.Moha...@wellsfargo.com>
Subject RE: [users@httpd] mod_rewrite, mod_proxy, order of execution?
Date Wed, 15 Oct 2008 09:02:07 GMT
Hello Chen,

Can you please elaborate little more, like what's there in logs, and the
configuration.

Thanks,

Best Regards,
Ashutosh Mohanty

-----Original Message-----
From: howard chen [mailto:howachen@gmail.com] 
Sent: Wednesday, October 15, 2008 2:17 PM
To: users@httpd.apache.org
Subject: [users@httpd] mod_rewrite, mod_proxy, order of execution?

Hello ,

I have the following config in httpd.conf:

my site is http://www.example.com (port 80)

==================

RewriteEngine On
RewriteRule   ^/$            /cgi-bin/index.cgi

ProxyPass          /cgi-bin/ http://www.example.com:9000/cgi-bin/
ProxyPassReverse   /cgi-bin/ http://www.example.com:9000/cgi-bin/

==================


If I type http://www.example.com/cgi-bin/index.cgi, it was ok.
If I type http://www.example.com/, it show 404 document not found.

But suppose I have rewrite "/" as  /cgi-bin/, so eventually it will
proxy to http://www.example.com:9000/cgi-bin/.

Seems that Rewrite is done after the proxy? How to control the order
then?

Thanks.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server
Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message