bluestrobe
Platinum Member
So I got my PHP problem nipped now I'm onto setting up virtual servers. I put in the following code as explained on the apache website into httpd.conf.
NameVirtualHost *:80
<VirtualHost *:80>
ServerName www.websiteone.com
DocumentRoot /www/websiteone.com
</VirtualHost>
<VirtualHost *:80>
ServerName www.websitetwo.com
DocumentRoot /www/websitetwo.com
</VirtualHost>
I made "websiteone.com" and "websitetwo.com" folders in the "htdocs" folder. My current web content still sits in the "htdocs" folder and figured the directory "www" as the code states was another name for it. Now when I goto start my server up it says those two directories don't exist. I tried changing the location path to htdocs and the full folder path with no avail. What am I doing wrong here? Apache2.0.55 with PHP4 and Win2k Server.
NameVirtualHost *:80
<VirtualHost *:80>
ServerName www.websiteone.com
DocumentRoot /www/websiteone.com
</VirtualHost>
<VirtualHost *:80>
ServerName www.websitetwo.com
DocumentRoot /www/websitetwo.com
</VirtualHost>
I made "websiteone.com" and "websitetwo.com" folders in the "htdocs" folder. My current web content still sits in the "htdocs" folder and figured the directory "www" as the code states was another name for it. Now when I goto start my server up it says those two directories don't exist. I tried changing the location path to htdocs and the full folder path with no avail. What am I doing wrong here? Apache2.0.55 with PHP4 and Win2k Server.