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

Problem with apache - obsd 3.4



Hello,

  I use OBSD 3.4 and I decided to use prepared Apache (before a
  compile it myself). Following text is between me and list about
  apache.
==== snip ====
Hello,

  in apache 1.3.27 I used this:

NameVirtualHost xxx.xxx.xxx.xxx

<VirtualHost xxx.xxx.xxx.xxx>
ServerName someserver.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
#RewriteLogLevel 9
#RewriteLog "/var/www/logs/rewrite.log"
VirtualDocumentRoot /home/cz/%2+/%1
</VirtualHost>

  and it runs perfectly. If no match rules, then was used virtual
  document root. But now I upgrade to 1.3.28 and this construction is
  not working and rewrite.log is empty (sure - without comment :-)).
  If I comment virtual document root, it starts work. How I can use
  mod_rewrite and mod_vhost_alias together again?
==== snip ====

==== snip ====
It *may* be an OpenBSD port problem. I'd start there, because OpenBSD's
patched version is quite different from vanilla.

nd
==== snip ====

Could you tell me, please, if the problem is really in OBSD port....
Thanks very much
Radek

-- 
Regards,
 Bc. Radek Krejca
 radek_(_at_)_ceskedomeny_(_dot_)_cz
 http://www.ceskedomeny.cz
 http://www.skdomeny.com
 http://www.starnet.cz



Visit your host, monkey.org