Virtual Hosts

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Virtual Hosts

Postby InterserveVB » 19. March 2007 20:37

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.

<VirtualHost *:*>
DocumentRoot /opt/lampp/htdocs/users/domain
ServerAlias *

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

Posts: 1
Joined: 19. March 2007 20:26

Postby JKMickelson » 22. March 2007 18:46


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.
Posts: 30
Joined: 23. February 2007 09:56

Postby yellow » 23. March 2007 06:23

Can we point to directories above root folder?
Posts: 8
Joined: 23. December 2004 06:04

Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 3 guests