Forum Moderators: phranque
When I do like this the domain1.com's document root is taken and if I reverse the order then order 2 will be taken for document root.
Even how do I install the required modules, please guide.
<VirtualHost 192.168.1.170:80>
DocumentRoot /aji/public_html
ServerName domain1.com
ServerAlias www.domain1.com
</VirtualHost>
<VirtualHost 192.168.1.170:80>
DocumentRoot /aji2/public_html
ServerName domain2.com
ServerAlias www.domain2.com
</VirtualHost> Thanks,
AjiNIMC
See the "Virtual Hosts" documentation for whichever version of Apache server [httpd.apache.org] you are running, and note the difference in the examples of these two different configuration options.
Jim
NameVirtualHost 192.168.1.170:80