Will wildcard vhost conflict with a specific one?

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

 



Hello,

I need to set both a generic/wildcard vhost and a specific one with different DocumentRoot and configurations, just like the example below:

<VirtualHost *>
    ServerName specific.mydomain.com

    DocumentRoot /var/www/specific.mydomain.com/
    JkMount /otherapp serverX
    JkMount /otherapp/* serverX
</VirtualHost>

<VirtualHost *>
    ServerName wildcard.mydomain.com
    ServerAlias *.mydomain.com

    DocumentRoot /var/www/mydomain.com/
    JkMount /myapp serverY
    JkMount /myapp/* serverY
</VirtualHost>

I strongly believe apache will be smart enough to make the wildcard vhost be the last match for its requests, but I'm not sure.

Is there a chance this will conflict?

Apache version is 2.2.3 and it's running on a CentOS 5.6 box.

[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