You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Bc. Radek Krejča" <ra...@ceskedomeny.cz> on 2003/12/15 13:15:54 UTC

[users@httpd] Problem with mod_rewrite in 1.3.28

Hello,

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

NameVirtualHost 217.11.237.186

<VirtualHost 217.11.237.186>
ServerName rewritemargaret.starnet.cz
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/starnet.cz/dbadmin3/$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
</VirtualHost>

  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 somedomain.cz
  it try over VirtualDocumentRoot. What is wrong? I have this so:

LoadModule php4_module        /usr/lib/apache/modules/libphp4.so
LoadModule rewrite_module     /usr/lib/apache/modules/mod_rewrite.so
LoadModule vhost_alias_module /usr/lib/apache/modules/mod_vhost_alias.so

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

  Radek

-- 
Regards,
 Bc. Radek Krejča
 STARNET, s. r. o.
 radek@ceskedomeny.cz
 http://www.ceskedomeny.cz
 http://www.skdomeny.com
 http://www.starnet.cz


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