Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

trying to setup virtual hosts

Status
Not open for further replies.

Zippyflyer

Technical User
Aug 17, 2003
44
US
I am trying to set up a vhost on 1 ip and 1 port but server 2 diff dirs on diff names (name based vhosting) using the code from the apache site

Code:
NameVirtualHost *:80

<VirtualHost *:80>

ServerName zippy.ownzyou.info
ServerAlias zippy.ownzyou.info
DocumentRoot /var/[URL unfurl="true"]www/html[/URL]
DirectoryIndex index.html index.htm index.php
</VirtualHost>

<VirtualHost *:80>

ServerName team.black-star.info
ServerAlias team.black-star.info
DocumentRoot /var/[URL unfurl="true"]www/blackstar[/URL]
DirectoryIndex index.html index.htm index.php

</VirtualHost>

Both server names go to the same page (serverd out of folder /var/ the permissions on the folders are set right.

What am i doing wrong with the vhost containers, or is this even possible?
 
o something i forgot to mention, i have both of the domain names pointing to my ip adress 66.41.65.143
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top