Wildcard DNS Print

  • 0

Edit your zone file for the domain in question. Create an A reaord *.domain.com to Domain share IP.

* 14400 IN A xxx.xxx.xxx.xxx

(xxx.xxx.xxx.xxx is server share IP)


nano /usr/local/apache/conf/httpd.conf

Edit your virtual host container for the domain in question to look like this

cntrol w search for domain.com




ServerAlias www.domain.com 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/


Control x save

and restart apache

Was this answer helpful?

« Back