Not sure if this it what you mean but ill give it a shot..
I have domain.com with my home page and i wanted webmail.domain.com so i could read my mail online (duh).
i httpd.conf i UNcomented
- Code: Select all
# Virtual hosts
#Include etc/extra/httpd-vhosts.conf
To
- 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>
<VirtualHost *:80>
DocumentRoot /opt/lampp/htdocs/webmail
ServerName webmail.domain.com
</VirtualHost>
This works for me.
Not sure if this is correct but as i said it worx for me
Hope it helps.