[users@httpd] Problem with mod_rewrite example from Apache manual

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux