Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache Sub-Domains...how to set up

Status
Not open for further replies.
Nov 26, 2002
2
US
Hello,

I have an apache web server and I am trying to setup a sub domain. What I would like to do is the following:

1) Create a sub domain called sub.mydomain.com
2) I would like to cofigure it so that all I need to do when uploading content into this sub domain is upload files to this directory
I have searched and I am not sure how this can be done. Can anyone offer some help? Thanks!
 
In simplest form, set up a new namevirtual server like:

<VirtualHost *:80>
DocumentRoot /physical_path_to/sub
ServerName sub.mydomain.com
</VirtualHost>
 
Just a note. If you have one virtual host, you must make use virtual hosts for all your domains and sub-domains. The default server will be the first one defined. You can use almost any directive in a vhost container that you can use in the main (global) section.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top