Enable Wildcard for Account

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 [email protected]
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..

Tuks… :)


Leave your comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.