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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to