httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mário Gamito" <gam...@gmail.com>
Subject [users@httpd] Using mod_vhost_alias with a VirtualHost in httpd.conf
Date Wed, 30 Apr 2008 14:30:20 GMT
Hi,

I have this 1.3.37 Apache with mod_rewrite, mod_alias and
mod_vhost_alias installed.

In httpd.conf I have a Virtual Host:

<VirtualHost mail.foobar.lan>

RewriteEngine On
RewriteLogLevel 0

RedirectMatch (.*)\/$ http://mail.foobar.lan/horde/imp/index.php

RedirectMatch (.*)\/horde/login.php$ http://mail.foobar.lan/horde/imp/index.php

RedirectMatch (.*)\/horde$ http://mail.foobar.lan/horde/dimp/index.php

RedirectMatch (.*)\mailbox.php$ http://mail.foobar.lan/horde/dimp/index.php

RedirectMatch (.*)\imp/$ http://mail.foobar.lan/horde/dimp/index.php

DocumentRoot /home/www

ServerName mail.foobar.lan

</VirtualHost>

Outside of this (unique) VirtualHost, I have mod_valias configured:

VirtualDocumentRoot /home/www/vhosts/%3/%2.1/%2.2/%2

Problem is that this way, nothing works :(

Requests to http://mail.foobar.lan/horde/imp/index.php gives a 404

Requests to http://a.foobar.lan redirects to
http://mail.foobar.lan/horde/imp/index.php which in turn gives me a
404, obviously.

On the error log file, both http://mail.foobar.lan/horde/imp/index.php
and http://a.foobar.lan (it's in the DNS) gives me the same message:

"File does not exist: /home/www/vhosts/lan/w/w/foobar/horde/imp/index.php"

I thought mod_vhost_alias wouldn't interfere with the VirtualHost I had.

Does anyone help me get this mess together ?

Any help would be appreciated.

Warm Regards,
Mário Gamito

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


Mime
View raw message