rewrite directives are being ignored

This is a discussion on rewrite directives are being ignored within the Linux Web Servers forums, part of the Web Server and Related Forums category; I have an httpd.conf that I migrated from Apache 1.3.x to 2.0.50. I just noticed ...


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 09-08-2004
Dan Wilga
 
Posts: n/a
Default rewrite directives are being ignored

I have an httpd.conf that I migrated from Apache 1.3.x to 2.0.50. I just
noticed that the rewrite rules in it (which had worked all along) are
apparently being ignored now, and I'm not sure why.

I set up a simple test case:

RewriteEngine on
RewriteRule tst/env\.mperl$ /cgi/env.mperl [E=MY_TEST:test,PT]

which should cause attempts to access http://myserver/tst/env.mperl to
instead access http://myserver/cgi/env.mperl, but this doesn't seem to
work.

I even added:

RewriteLog /var/log/httpd/rewrite
RewriteLogLevel 3

and when I try to access the URL, I get nothing in the log. Even if my
rule wasn't matching, I should get *something* in the log at level 3.
The server-info module shows that this part of the config is indeed
getting loaded.

If I instead put the lines above into a top-level .htaccess file,
everything works as expected. I also get entries in the log.

--
Dan Wilga dwilga-MUNGE@mtholyoke.edu
** Remove the -MUNGE in my address to reply **
 
Thread Tools Search this Thread
Search this Thread:

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

BB 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 02:24 AM.


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