Page 1 of 1

How Do I Configure VirtualHost

PostPosted: 02. November 2011 22:25
by bobvanluijt
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

Re: How Do I Configure VirtualHost

PostPosted: 03. November 2011 14:17
by JonB
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. :)

Re: How Do I Configure VirtualHost

PostPosted: 25. January 2017 21:11
by Meleeman
hello I too am having this problem. I need to configure a virtual hosts for my class, but all I got is my ubuntu laptop, my version is 16.04.1 LTS for my OS, and the current Xammp i'm running is 5.5.35-0.

Re: How Do I Configure VirtualHost

PostPosted: 29. January 2017 06:56
by Meleeman
I found this link. and it worked for me. http://www.devarticles.in/linux/creating-new-virtual-host-while-using-xampp-in-ubuntu-linux/