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/

I've changed my hosting file to:

I've made sure there is a /opt/lampp/htdocs/ file...

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

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

BTW, please include the Distribution and version of Linux you are using in your profile, it make a considerable difference. :)
User avatar
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