Setup Subdomain Under XAMPP

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

Setup Subdomain Under XAMPP

Postby Gamzarme » 31. December 2006 21:09

Another quick question for you genius Linux gurus out there. How would one go about setting up a sub-domain using XAMPP? I've looked in the configuration files and haven't found anything even remotely related to this.

Posts: 9
Joined: 30. December 2006 08:51
Location: Small-Town-Texas, United States.

Postby wuzzboy » 21. January 2007 17:43

Not sure if this it what you mean but ill give it a shot..
I have with my home page and i wanted so i could read my mail online (duh).

i httpd.conf i UNcomented
Code: Select all
# Virtual hosts
#Include etc/extra/httpd-vhosts.conf

Code: Select all
 # Virtual hosts
Include etc/extra/httpd-vhosts.conf

Then i edited the etc/extra/httpd-vhosts.conf file and added this
Code: Select all
NameVirtualHost *:80

<VirtualHost *:80>
DocumentRoot /opt/lampp/htdocs
ServerName default

<VirtualHost *:80>
DocumentRoot /opt/lampp/htdocs/webmail

This works for me.

Not sure if this is correct but as i said it worx for me :-)
Hope it helps.
Posts: 4
Joined: 02. December 2006 17:46

Re: Setup Subdomain Under XAMPP

Postby varunms » 27. March 2012 08:07


the code which you have given is working in doamin as localhost but there is one problem

i need replace the doamin as a ip

i have replaced as

<VirtualHost *:80>
DocumentRoot /opt/lampp/htdocs/workspace/sunb/
ServerName *.

but i when i create a sub doamin as abd. i get server not found error
Posts: 1
Joined: 27. March 2012 08:03
Operating System: LINUX Ubntu 10

Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 14 guests