Zippyflyer
Technical User
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
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?
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?