Difference between revisions of "Subdomain"

From Wiki2
Line 1: Line 1:
===creating subdomains===
===creating Subdomains===
#[[useradd add user]] with name= first8letters of subdomain name
#[[useradd add user]] with name= first8letters of subdomain name
#goto https://manage.www.namecheap.com/myaccount/domain-list.asp ckt nanj and edit all host records
#goto https://manage.www.namecheap.com/myaccount/domain-list.asp ckt nanj and edit all host records

Revision as of 16:22, 27 February 2013

creating Subdomains

  1. useradd add user with name= first8letters of subdomain name
  2. goto https://manage.www.namecheap.com/myaccount/domain-list.asp ckt nanj and edit all host records
  3. subdomain | sitebuilt.net. | CNAME(alias)
  4. got /etc/apache2/sites-avalaible

in /etc/apache2/sites-available create a file with the name subdomain.sitebuil

<VirtualHost *:80>
 ServerName subdomain.sitebuilt.net
 DocumentRoot /home/username/public_html
 # Other directives here
</VirtualHost>
a2ensite subdomain.sitebuil (puts a link in sites-enabled)
/etc/init.d/apache2 reload
apache2ctl restart