ubuntu

XAMPP Virtual Hosts in Ubuntu

Quick HOWTO to enable Virtual Hosts with XAMPP on Ubuntu (or any *nix distribution).

shell> sudo gedit /opt/lampp/etc/httpd.conf

Uncomment the line below (it should be towards the end of the file):
Include etc/extra/httpd-vhosts.conf

Save & Close the httpd.conf file.

shell> sudo gedit /opt/lampp/etc/extra/httpd-vhosts.conf

Make sure the line below is uncommented:
NameVirtualHost *:80

Add/Edit the following piece of code:
<VirtualHost *:80>
    ServerAdmin admin@localhost

Syndicate content