#1 (permalink)  
Old 02-13-2007, 09:04 AM
Registered User
 
Join Date: Dec 2006
Posts: 29
Millar is on a distinguished road
DNS Wildcard?

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-13-2007, 09:29 PM
Registered User
 
Join Date: Jan 2004
Posts: 664
Lyttek is on a distinguished road
*.domain.com. 14400 IN CNAME domain.com.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 08-25-2007, 01:02 AM
Registered User
 
Join Date: Jun 2007
Posts: 30
aisagtr is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 08-25-2007, 08:23 AM
isputra's Avatar
Registered User
 
Join Date: May 2003
Location: Mbelitar
Posts: 592
isputra
Quote:
Originally Posted by aisagtr View Post
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.
You have to edit httpd.conf and add *.domain.com at ServerAlias :
__________________
It's me ...... It's me ......
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-09-2008, 06:07 PM
fenixer's Avatar
Registered User
 
Join Date: Feb 2007
Posts: 89
fenixer is on a distinguished road
Question

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?
__________________
---

Kind Regards.
Gino.... IT Hosting Fenixer
www.fenixer.es
www.manuales.fenixer.es
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-14-2008, 08:12 AM
fenixer's Avatar
Registered User
 
Join Date: Feb 2007
Posts: 89
fenixer is on a distinguished road
Nobody can confirm???
do you think it is a good idea to publish at bugzilla?

thanks.
__________________
---

Kind Regards.
Gino.... IT Hosting Fenixer
www.fenixer.es
www.manuales.fenixer.es
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-14-2008, 09:14 AM
isputra's Avatar
Registered User
 
Join Date: May 2003
Location: Mbelitar
Posts: 592
isputra
Quote:
Originally Posted by fenixer View Post
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 : After create an new account the apache settings are reset and httpd.conf changes gone.
__________________
It's me ...... It's me ......
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-19-2008, 05:35 AM
Registered User
 
Join Date: Feb 2003
Posts: 308
internetfab
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.
__________________
David, Systems Administrator
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-19-2008, 10:56 AM
cpanelkenneth's Avatar
cPanel Quality Assurance
 
Join Date: Apr 2006
Posts: 3,222
cpanelkenneth is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-21-2008, 05:05 PM
Registered User
 
Join Date: Jan 2008
Posts: 4
DennisTG is on a distinguished road
Quote:
Originally Posted by cpanelkenneth View Post
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 08:06 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc