httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <jos...@slive.ca>
Subject Re: [users@httpd] Using mod_vhost_alias with a VirtualHost in httpd.conf
Date Wed, 30 Apr 2008 14:41:59 GMT
On Wed, Apr 30, 2008 at 10:30 AM, Mário Gamito <gamito@gmail.com> wrote:
> Hi,
>
>  I have this 1.3.37 Apache with mod_rewrite, mod_alias and
>  mod_vhost_alias installed.

Why are you using 1.3? Version 2.2 would be a much better choice.

>
>  In httpd.conf I have a Virtual Host:
>
>  <VirtualHost mail.foobar.lan>

I don't think you've read the virtual hosting docs. Perhaps you should
start here:
http://httpd.apache.org/docs/1.3/vhosts/name-based.html#using

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

What's with all the back-slashes? I don't think you want those?

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

Have you read this:
http://httpd.apache.org/docs/1.3/vhosts/mass.html#combinations

What you probably want is something more like:

UseCanonicalName off
NameVirtualHost *:80

<VirtualHost *:80>
ServerName default.host
VirtualDocumentRoot /home/www/vhosts/%3/%2.1/%2.2/%2
</VirtualHost>

<VirtualHost *:80>
ServerName mail.foobar.lan
RewriteStuff (corrected and tested using the RerwiteLog)
</VirtualHost>

Joshua.

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