Re: [users@httpd] mod_rewrite - Reverse Proxying CGIs with PATH_INFO to a Backend

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

 



Keith Bare wrote:

> RewriteRule /(.*\.cgi)$ http://cgi-backend/$1 [P]
> 
> but this fails for CGI scripts that use PATH_INFO.

Of course it does.  The $ means it matches only at the
end of a URL.  If the string ".cgi" is sufficient to identify
the URL as CGI, then just add another .* before closing your
brackets.

-- 
Nick Kew

---------------------------------------------------------------------
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