|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Using 2 domains...
Hi.
when running two domains with the virtual host command, do I need to seperate virtual host tags like : <VirtualHost my.ip.address> ServerAdmin me@mydomain1.com DocumentRoot /var/www </virtualhost> <virtualhost my.ip.address> ServerAdmin me@mydomain2.comDocumentRoot /var/www/mydomain2.com </virtualhost> Thanks, Skeasor
__________________
____________ Thanks, Skeasor Got Debian Linux? www.debian.org |
|
#2
|
|||
|
|||
|
You forgot the most critical directive - ServerName.
|
|
#3
|
|||
|
|||
|
example...
Well,
I was just giving a short little example. Is that how it should be though by using 2 virtual host tags ? Thanks, Skeasor |
|
#4
|
|||
|
|||
|
>> Is that how it should be
To use <VirtualHost>, the two minimum directives within <VirtualHost> are: ServerName DocumentRoot |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > Using 2 domains... |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|