This is a discussion on NameVirtualHost doesn't work within the Linux Web Servers forums, part of the Web Server and Related Forums category; I have namevirtualhost defined but for some reason it's just not working. I'm using wildcards in the form ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I have namevirtualhost defined but for some reason it's just not working.
I'm using wildcards in the form of XXX.com.site.com and XXX.img.site.com. It appears only the first virtualhost works. The second one keeps routing to the document root defined in the first virtualhost (/www/imgsite/htdocs/com). Wha am I doing wrong here? Does namevirtualhost not support wildcard subdomains? NameVirtualHost 1.2.3.4:80 <VirtualHost 1.2.3.4> ServerName com.site.com DocumentRoot /www/imgsite/htdocs/com </VirtualHost> <VirtualHost 1.2.3.4> ServerName img.site.com DocumentRoot /www/imgsite/htdocs </VirtualHost> |