Page 1 of 1

Virtual Hosts

PostPosted: 19. March 2007 20:37
by InterserveVB
I have four domains, which I have linked to my server with Bind. Currently, they all point to my default xampp htdocs directory. I would like to have 1 point to the htdocs directory and the rest point to alternate directories within the htdocs directory. I tried adding virtual hosts in the httpd.conf file, but nothing happens. Its like they aren't even there.

Format:
<VirtualHost *:*>
DocumentRoot /opt/lampp/htdocs/users/domain
ServerName domain.com
ServerAlias *.domain.com
</VirtualHost>

Please let me know what I am doing wrong, or if there is a better way to do it.

Thanks,
Joseph

PostPosted: 22. March 2007 18:46
by JKMickelson
Hi,

Check inside /opt/lampp/etc/httpd.conf for:

Code: Select all
#Include etc/extra/httpd-vhosts.conf


Uncomment this line to get virtual host working. Make sure you restart apache.

PostPosted: 23. March 2007 06:23
by yellow
Can we point to directories above root folder?