Forum Moderators: phranque
<VirtualHost *>
DocumentRoot "/var/www/info"
ServerName info.example.com
</VirtualHost>
pls help
Welcome to WebmasterWorld!
I'm not sure what your question is, but I'd recommend that you start here [httpd.apache.org] with Name-based Virtual Hosts.
Jim
but it doesn't work
two address is point to same directory var/www/html
i have read the apache guideline and config it in httpd.conf
so what's wrong on my setting
You may also want to add a ServerAlias directive so that "example.com" --without either the www. or info. subdomains-- will resolve to the same virtual server as www.example.com.
[added] And you will need to restart your server after any change to httpd.conf in order for the changes to take effect. [/added]
Jim