rewrite directives are being ignored
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Web Servers on Unix and Linux > rewrite directives are being ignored




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    rewrite directives are being ignored  
Dan Wilga


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-08-04 10:49 PM

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





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:06 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register