mod_rewrite and cgi

This is a discussion on mod_rewrite and cgi within the Linux Web Servers forums, part of the Web Server and Related Forums category; Is there a way to use mod_rewrite to - test incoming uri for something like /cgi-bin/foo/bar.cgi - and ...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-10-2007
cpayne.tcr@gmail.com
 
Posts: n/a
Default mod_rewrite and cgi

Is there a way to use mod_rewrite to
- test incoming uri for something like /cgi-bin/foo/bar.cgi
- and then remap it to a file like so foo/bar.php

I have tried this:
RewriteRule ^/cgi-bin/foo/bar\.cgi$ foo/bar.php [R,L,QSA]
but my rewrite log show this:
- (2) init rewrite engine with requested uri /cgi-bin/foo/bar.cgi
- (3) applying pattern '.*' to uri '/cgi-bin/foo/bar.cgi'
- (4) RewriteCond: input='GET' pattern='^TRACE' => not-matched
- (1) pass through /cgi-bin/foo/bar.cgi

Any thoughts?

(I posted this originally in alt.apache.configuration--sorry for any
crossover.)

 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:44 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0