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.

Reply via email to