Is there anyway I can enter a wildcard like * or . which I can make a CNAME to the main URL meaning I can type anything.url.com?
Thanks in advanced,
Millar.
Is there anyway I can enter a wildcard like * or . which I can make a CNAME to the main URL meaning I can type anything.url.com?
Thanks in advanced,
Millar.
*.domain.com. 14400 IN CNAME domain.com.
Pardon me but under cpanel, shouldn't it just be:
* 14400 IN CNAME domain.com.
I tried both and it went thru without giving any error.
Please advise.
Hello..
Nowadays, if you manually put into serveralias this wildcard, it will be deleted when recompiling Apache at any time, or just executing "/usr/local/cpanel/bin/build_apache_conf"... doesn't matter you have distilled before.
This can be considered a bug?
![]()
Nobody can confirm???
do you think it is a good idea to publish at bugzilla?
thanks.
It's not a bug, it's the new way of cpanel handle httpd.conf
If you use the search feature in this forum, you will saw a lot of thread that discuss this matter, like example : http://forums.cpanel.net/showthread.php?t=71049 and http://forums.cpanel.net/showthread.php?t=73899
It's me ...... It's me ......
Quick Wildcard Setup for One virtualhost
Code:mkdir -p /usr/local/apache/conf/userdata/std/2/<username>/<domainname>/ echo "ServerAlias *.<domainname>" >> /usr/local/apache/conf/userdata/std/2/<username>/<domainname>/wildcard.conf /scripts/ensure_vhost_includes --user=<username> /scripts/restartsrv httpd
replace <username> and <domainname> with the username and domain of the customer/domain.
Don't forget to add the wildcard entry in the zonefile for the domain
* IN CNAME domainname.com.
If it's for a user owned domain, one can also add it as a subdomain with the document root being /home/user/public_html
Belive it or not i didnt understand this untill i found the solution myself.
Login to the cpanel account owning the domain, go to subdomain,
then add the subdomain *
Cpanel autofills /public_html/ as document root. if thats where the domain is then your set to go.
if not then write where this specific wildcard should point to.
in case you added it manualy to either httpd.conf and/or the DNS zone then go to those 2 places and change/remove the * from there to look like they were before you manualy edited them.