normally, you would have main web
server and then virtual web servers. Here is what it looks like in the
httpd.conf
#setup main web server
DocumentRoot /www/mainweb
ServerName www.mainweb.com
#then set up virtual web server (e.g. IP
based)
<Virtualhost 111.222.333.444>
DocumentRoot /www/virtualweb1
Servername www.virtualweb1.com
</VirtualHost>
#if you want, the second virtual web
server
<Virtualhost 111.222.333.555>
DocumentRoot /www/virtualweb2
Servername www.virtualweb2.com
</VirtualHost>
So the answer is obvious.
Daniel
|
- Apache virtual hosting Dzuy M. Nguyen
- Re: Apache virtual hosting Daniel Yang
- Re: Apache virtual hosting Robert Varga