Weird alias inheritance in virtualhosts

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

 



 Hi,

I'm using httpd 2.2.3-22 on centos 5.

Aliases defined in my httpd.conf are inherited inside all my virtualhost. It seemed to me that aliases were'nt inherited.
Is it normal ? How to prevent this behaviour ?

When i access http://myserver1.myorganisation.fr it display my vhost document. -> normal behaviour

But

When i access http://myserver1.myorganisation.fr/icons/, i get a the icons directory listing from the alias defined
outside the Virtualhost.

My conf :

DocumentRoot "/var/toto"
Alias /icons/ "/var/www/icons/"

<Directory "/var/www/icons">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

<VirtualHost *:80>
    ServerAdmin xx@xxxxxxx
    DocumentRoot "/var/www/test"
    ServerName www.myorganisation.fr
    ServerAlias myserver1.myorganisation.fr myserver2.myorganisation.fr
</VirtualHost>

--
Eric PEYREMORTE
Technicien informatique - IUT de Valence
Tel : 04.75.41.88.37


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