NameVirtualHost doesn't work

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


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-05-2005
Shabam
 
Posts: n/a
Default NameVirtualHost doesn't work

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>


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:20 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0