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: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to