RE: mod_rewrite, mod_proxy, order of execution?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx] 
Sent: Wednesday, October 15, 2008 2:17 PM
To: users@xxxxxxxxxxxxxxxx
Subject:  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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux