Difference between revisions of "Subdomain"
From Wiki2
Line 1: | Line 1: | ||
===creating Subdomains=== | ===creating Subdomains=== | ||
1.For each subdomain name you want run: | |||
adduser | |||
for these subdomains: | |||
tim | |||
in /etc/apache2/sites-available create a file | hvac | ||
stuff2get | |||
cascada | |||
levelthefield | |||
soupteam | |||
pathboston | |||
git | |||
abvbread | |||
2.goto https://manage.www.namecheap.com/myaccount/domain-list.asp ckt nanj and edit all host records | |||
subdomain | sitebuilt.net. | CNAME(alias) | |||
3.got /etc/apache2/sites-avalaible | |||
in /etc/apache2/sites-available create a file for each subdomain | |||
<VirtualHost *:80> | <VirtualHost *:80> | ||
ServerName subdomain.sitebuilt.net | ServerName subdomain.sitebuilt.net | ||
Line 10: | Line 22: | ||
# Other directives here | # Other directives here | ||
</VirtualHost> | </VirtualHost> | ||
then | |||
a2ensite subdomain.sitebuil (puts a link in sites-enabled) | a2ensite subdomain.sitebuil (puts a link in sites-enabled) | ||
/etc/init.d/apache2 reload | /etc/init.d/apache2 reload | ||
apache2ctl restart | apache2ctl restart |
Revision as of 13:58, 31 December 2013
creating Subdomains
1.For each subdomain name you want run:
adduser
for these subdomains:
tim hvac stuff2get cascada levelthefield soupteam pathboston git abvbread
2.goto https://manage.www.namecheap.com/myaccount/domain-list.asp ckt nanj and edit all host records
subdomain | sitebuilt.net. | CNAME(alias)
3.got /etc/apache2/sites-avalaible in /etc/apache2/sites-available create a file for each subdomain
<VirtualHost *:80> ServerName subdomain.sitebuilt.net DocumentRoot /home/username/public_html # Other directives here </VirtualHost>
then
a2ensite subdomain.sitebuil (puts a link in sites-enabled) /etc/init.d/apache2 reload apache2ctl restart