httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bc. Radek Krejča <>
Subject [users@httpd] Problem with mod_rewrite in 1.3.28
Date Mon, 15 Dec 2003 12:15:54 GMT

  I upgrade Apache from 1.2.27 to 1.2.28. I use mod_vhost_alias with
  mod_rewrite, like this:


RewriteEngine ON
RewriteMap    lowercase       int:tolower
RewriteCond   ${lowercase:%{HTTP_HOST}}  ^[a-z0-9-]+\.[a-z0-9-]+$
RewriteRule   ^(.+)  ${lowercase:%{HTTP_HOST}}$1  [C]
RewriteRule   ^([a-z0-9-]+)\.([a-z0-9-]+)/(.*) /home/cz/$1.$2/www/$3
RewriteCond   ${lowercase:%{HTTP_HOST}} ^dbadmin\.[a-z0-9-]+\.[a-z0-9-]+$
RewriteRule   ^(.+)  ${lowercase:%{HTTP_HOST}}$1 [C]
RewriteRule   ^(dbadmin)\.([a-z0-9-]+)\.([a-z0-9-]+)/(.*) /home/$4
RewriteCond   ${lowercase:%{HTTP_HOST}} ^www\.[a-z0-9-]+\.[a-z0-9-]+\.[a-z0-9-]+$
RewriteRule   ^(.+)  ${lowercase:%{HTTP_HOST}}$1 [C]
RewriteRule   ^(www)\.([a-z0-9-]+)\.([a-z0-9-]+)\.([a-z0-9-]+)/(.*) /home/cz/$3.$4/$2/$5
VirtualDocumentRoot /home/cz/%2+/%1

  In 1.3.27 works it perfectly but in 1.2.28 runs it without errors,
  but only VirtualDocumentRoot is working and if I use
  it try over VirtualDocumentRoot. What is wrong? I have this so:

LoadModule php4_module        /usr/lib/apache/modules/
LoadModule rewrite_module     /usr/lib/apache/modules/
LoadModule vhost_alias_module /usr/lib/apache/modules/

  Thank you very much, I can send more info, but it runs without
  errors so i don't know what. Sorry.


 Bc. Radek Krejča
 STARNET, s. r. o.

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message