Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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??

  2. #2
    Linux Newbie
    Join Date
    Dec 2004
    Barrie, Ontario
    You do it the same way you do the domain itself.

    If you do it in httpd.conf directory:

    <VirtualHost *&#58;80>
     ServerName www.mydomain.tld
     ServerAlias mydomain.tld
     ServerAdmin me@mydomain.tld
     DocumentRoot /data/mydomain.tld/www
    <VirtualHost *&#58;80>
     ServerName subdomain.mydomain.tld
     ServerAdmin me@mydomain.tld
     DocumentRoot /data/mydomain.tld/subdomain
    Or via webmin, just create a new virtual server and for the servername, use the subdomain.domain.tld as the value.
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts