Problem with virtual host

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

Problem with virtual host

Postby sdk » 04. September 2006 12:32

I want my website to show the normal document root when you go to the Ip address (like http://193.xxx.xxx) but when you go to www.mydomain.com it should go to /htdocs/site2.

I tried this but it doesn't work. Quickmail goes to the main page instead of to /files. sdkshop seems to work though.

Code: Select all

NameVirtualHost 193.138.204.xxx:80

<VirtualHost 193.138.204.xxx:80>

ServerName xxx.mine.nu
DocumentRoot /var/www/html/files/
ServerAlias             *.mine.nu

</VirtualHost>

<VirtualHost 193.138.204.171:80>

ServerName www.xxx.nl
DocumentRoot /var/www/html/sdkshop/
ServerAlias             *.xxx.nl

</VirtualHost>

<VirtualHost 193.138.204.171:80>

ServerName 193.138.204.xxx
DocumentRoot /var/www/html/
ServerAlias             *.193.138.204.xxx

</VirtualHost>


edit: it works now, didnt see it becouse I had to upload an index
sdk
 
Posts: 7
Joined: 04. September 2006 12:20

Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 7 guests