Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


How do I set up a subdomain on my server? by Wullie
Posted: 4 May 02 (Edited 23 Jun 02)

The following explains how to set up subdomains on your server. This assumes that you already have virtualhosts set up and working, if not read that FAQ first!! Also, your dns must resolve any requests for this subdomain to your server.

The following is just the same set up as a normal virtualhost but you are using the subdomain name instead of just the server name.

<VirtualHost *:80>
   UseCanonicalName off
   ServerName www.whatever.domain.co.uk
   ServerAlias whatever.domain.co.uk
   ServerAdmin webmaster@domain.co.uk
   DocumentRoot /www/domain1
   ScriptAlias /cgi-bin/ "C:/www/domain1/cgi-bin/"
   ErrorLog logs/domain1/error.log
   CustomLog logs/domain1/access.log common
   CustomLog logs/domain1/referer.log referer
   CustomLog logs/domain1/agent.log agent
   ServerSignature EMail

Hope this helps



Back to Linux (server) FAQ Index
Back to Linux (server) Forum

My Archive

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close