Difference between revisions of "Subdomain"

From Wiki2
Line 1: Line 1:
===creating Subdomains===
====creating Subdomains====
1. run:
1. run:
   adduser
   adduser

Revision as of 14:01, 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