Results 1 to 2 of 2
Hello everyone. I have a quick noobish question. How do you set up subdomains for apache and can you do it in webmin??...
- 03-25-2005 #1Just Joined!
- Join Date
- Jan 2005
- Posts
- 48
how to set up subdomains
Hello everyone. I have a quick noobish question. How do you set up subdomains for apache and can you do it in webmin??
- 03-25-2005 #2Linux Newbie
- Join Date
- Dec 2004
- Location
- Barrie, Ontario
- Posts
- 219
You do it the same way you do the domain itself.
If you do it in httpd.conf directory:
Or via webmin, just create a new virtual server and for the servername, use the subdomain.domain.tld as the value.Code:<VirtualHost *:80> ServerName www.mydomain.tld ServerAlias mydomain.tld ServerAdmin me@mydomain.tld DocumentRoot /data/mydomain.tld/www </VirtualHost> <VirtualHost *:80> ServerName subdomain.mydomain.tld ServerAdmin me@mydomain.tld DocumentRoot /data/mydomain.tld/subdomain </VirtualHost>
Blog - KB5UMQ - Linux User #272983
3 Rules:
1) "It doesn't work..." is simply not useful information.
2) Don't cross post!
3) If you are asking for help, start by telling us your distro/os and version.


Reply With Quote