Subdomain: Difference between revisions
Jump to navigation
Jump to search
Upazixorys (talk | contribs) No edit summary |
m (Reverted edits by Upazixorys (Talk); changed back to last version by Doug) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
To setup a subdomain on the Uniform Server, your best option is to use a [[VirtualHost]]. Once your VirtualHost is set up, you need to also configure your domain, normally with a CNAME entry, pointed to the same location as the root domain. This basically tells the DNS to direct requests to the subdomain to the same location as requests to the main domain. Therefore, both requests end up going to your Uniform Server. | |||
Example DNS Records: | Example DNS Records: | ||
{| border= | {| border="1" | ||
|- | |- | ||
! HOST | ! HOST | ||
Line 25: | Line 25: | ||
[[Category: Application]] | [[Category: Application]] | ||
[[Category: Development]] | [[Category: Development]] | ||
Latest revision as of 08:29, 24 November 2010
To setup a subdomain on the Uniform Server, your best option is to use a VirtualHost. Once your VirtualHost is set up, you need to also configure your domain, normally with a CNAME entry, pointed to the same location as the root domain. This basically tells the DNS to direct requests to the subdomain to the same location as requests to the main domain. Therefore, both requests end up going to your Uniform Server.
Example DNS Records:
HOST | TYPE | VALUE |
---|---|---|
example.com | A | 255.255.255.255 |
dev.example.com | CNAME | example.com |
Working With Localhost
Without direct access to the Records for localhost, if you are developing on a local server, see Working With The HOSTS File for more information on setting that up.