How Do I Configure VirtualHost

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

How Do I Configure VirtualHost

Postby bobvanluijt » 02. November 2011 22:25

Wow, jeah, thanks...

That keeps me with one question...

I'm not working on the localhost...

I've changed the httpd-vhosts.conf to:
Code: Select all
<VirtualHost *:80>
    DocumentRoot /opt/lampp/htdocs/test.nl
    ServerName test.nl
    ServerAlias www.test.nl
</VirtualHost>


I've changed my hosting file to:
[SERVER IP] www.test.nl
[SERVER IP] test.nl

I've made sure there is a /opt/lampp/htdocs/test.nl/index.php file...

But... when I now visit www.test.nl; I'll find the standard xampp site, and not the: "/opt/lampp/htdocs/test.nl/index.php"

Thanks
bobvanluijt
 
Posts: 4
Joined: 02. November 2011 19:23
Operating System: Linux

Re: How Do I Configure VirtualHost

Postby JonB » 03. November 2011 14:17

Did you:

A. Make sure that there is an include statement in /opt/lampp/etc/httpd.conf for etc/extra/httpd-vhosts.conf ???

B. - Actually create TWO virtual hosts (like the example)??? The first as a proxy for the default server, and the second as your 'new virtual host'. ???

C. is the NameVirtualHost line uncommented/present?

My bet is on "A"

Good Luck
8)

BTW, please include the Distribution and version of Linux you are using in your profile, it make a considerable difference. :)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 5 guests