Re: Using mod_vhost_alias with a VirtualHost in httpd.conf

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

 



On Wed, Apr 30, 2008 at 10:30 AM, Mário Gamito <gamito@xxxxxxxxx> 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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux