Difference between revisions of "Subdomain"
From Wiki2
Line 1: | Line 1: | ||
===creating Subdomains=== | ===creating Subdomains=== | ||
1. | 1. run: | ||
adduser | adduser | ||
for these subdomains: | for these subdomains: | ||
Line 13: | Line 13: | ||
abvbread | abvbread | ||
2.goto https://manage.www.namecheap.com/myaccount/domain-list.asp ckt nanj and edit all host records | 2. goto https://manage.www.namecheap.com/myaccount/domain-list.asp ckt nanj and edit all host records | ||
subdomain | sitebuilt.net. | CNAME(alias) | subdomain | sitebuilt.net. | CNAME(alias) | ||
3. | 3. goto /etc/apache2/sites-avalaible | ||
in /etc/apache2/sites-available create a file for each subdomain | in /etc/apache2/sites-available create a file for each subdomain | ||
<VirtualHost *:80> | <VirtualHost *:80> | ||
Line 23: | Line 23: | ||
</VirtualHost> | </VirtualHost> | ||
then | then | ||
a2ensite subdomain | a2ensite subdomain (puts a link in sites-enabled) | ||
/etc/init.d/apache2 reload | /etc/init.d/apache2 reload | ||
apache2ctl restart | apache2ctl restart |
Revision as of 14:00, 31 December 2013
creating Subdomains
1. 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. goto /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 (puts a link in sites-enabled) /etc/init.d/apache2 reload apache2ctl restart