Wednesday, 26 August 2009

Enable Wildcard for Account

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..

No comments:

Post a Comment