ServerAlias yourdomain.com *.yourdomain.com
DocumentRoot /your/doc/root/
ServerAdmin webmaster@yourdomain.com
listen 80;
server_name domain.com *.yourdomain.com;
}
Its All About to Share...
Hello Friends,
If you want to access your account with anything.domain.com like abcd.domain.com
first check DNS report for the domain if it resolve from our server then only
1.edit your zone file for the domain in question with *.domain.com A entry
*.domainname.com. 14400 IN A IP address of server
2 .vi /usr/local/apache/conf/httpd.conf
edit your virtual host container for the domain in question to look like this
search for domain.com
ServerAlias domain.com *.domain.com
ServerAdmin webmaster@domain.com
DocumentRoot /home/user/public_html
BytesLog domlogs/domain.com-bytes_log
User user
Group user
ServerName www.domain.com
User user
Group user
CustomLog /usr/local/apache/domlogs/domain.com combined
ScriptAlias /cgi-bin/ /home/user/public_html/cgi-bin/
Then finally restart Apache..
© 2009 Servertechs · Proudly powered by Blogger & Servertechs 2 by Prisha.