httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luis Fernando Alen <luis.a...@izap.com.br>
Subject [users@httpd] Will wildcard vhost conflict with a specific one?
Date Tue, 10 Apr 2012 14:19:47 GMT
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.

Mime
View raw message