httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Júlio Maranhão <ju...@ieav.cta.br>
Subject [users@httpd] Problem with mod_rewrite example from Apache manual
Date Fri, 27 Oct 2006 18:11:13 GMT
The following code was put in a working Apache httpd.conf;

RewriteEngine On
RewriteCond %{TIME_HOUR} > 20 [OR]
RewriteCond %{TIME_HOUR} < 07
RewriteRule ^/fridge - [F]

Now, "httpd.exe -t" reports the following syntax error:

Syntax error on line 392 of .../httpd.conf:
RewriteCond: bad flag delimiters

I commented the 2 RewriteCond lines and it worked again.
What is going on, since this is an example (copy/paste) from the manual? Is 
the error mine? Or is it a real bug (manual or code)?

Cheers,

Júlio

P.S.: Apache 2.2.3 running on Windows 2003 and compiled by the guys from 
ApacheLounge. The rewrite code was put at the main level, outside any Apache 
container. It's between the main site config and a virtual host config (ssl).


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


Mime
View raw message