If there is one IP address, than how to host two web sites on server ?

Answer

In this case I will use Name Based Virtual hosting.

ServerName 10.111.203.25
NameVirtualHost *:80


ServerName web1.test.com
DocumentRoot /var/www/html/web1


ServerName web2.test2.com
DocumentRoot /var/www/html/web2

All apache Questions

Ask your interview questions on apache

Write Your comment or Questions if you want the answers on apache from apache Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---