Difference between revisions of "Subdomain"
From Wiki2
Line 1: | Line 1: | ||
===creating | ===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
- 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
- subdomain | sitebuilt.net. | CNAME(alias)
- 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