|
|||
|
Wildcard DNS
I have this in httpd.conf:
#ServerAlias www.hiphoprappers.com hiphoprappers.com ServerAdmin webmaster@hiphoprappers.com DocumentRoot /home/hhr/public_html BytesLog domlogs/hiphoprappers.com-bytes_log ServerAlias *.hiphoprappers.com hiphoprappers.com ServerName www.hiphoprappers.com User hhr Group hhr CustomLog domlogs/hiphoprappers.com combined #RedirectMatch 301 (.*) http://hiphoprappers.com$1 ScriptAlias /cgi-bin/ /home/hhr/public_html/cgi-bin/ and this in hiphoprappers.com.db in the named folder: ; Modified by Web Host Manager ; Zone File for hiphoprappers.com @ 14400 IN SOA ns1.wisd0m.net. root.server1.wisd0m.net. ( 2004041524 28800 7200 3600000 86400 ) hiphoprappers.com. 14400 IN NS ns1.wisd0m.net. hiphoprappers.com. 14400 IN NS ns2.wisd0m.net. hiphoprappers.com. 14400 IN A 216.12.200.18 localhost.hiphoprappers.com. 14400 IN A 127.0.0.1 hiphoprappers.com. 14400 IN MX 0 hiphoprappers.com. mail 14400 IN CNAME hiphoprappers.com. www 14400 IN CNAME hiphoprappers.com. ftp 14400 IN A 216.12.200.18 www2 14400 IN A 216.12.200.18 www.www2 14400 IN A 216.12.200.18 studio 14400 IN A 216.12.200.18 www.studio 14400 IN A 216.12.200.18 test 14400 IN A 216.12.200.18 www.test 14400 IN A 216.12.200.18 *.hiphoprappers.com. 14400 IN A 216.12.200.18 I used this guide: http://photomatt.net/archives/2003/1...d-sub-domains/ And it is not working. All newly created valid subdomains still get redirected by the wildcard line in httpd.conf. Any ideas? Thanks! |
|
||||
|
Quote:
__________________
Jonathan Michaelson cPanel Forum Moderator Need your cPanel servers secured and tuned? cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf http://www.configserver.com |
|
||||
|
Hello
Edit /scripts/wwwacct --x---x---x---x---x---x---x pico -w /scripts/wwwacct search for '14400' see: $domain. 14400 IN MX 0 $domain. mail 14400 IN CNAME ${domain}. www 14400 IN CNAME ${domain}. substitute for: $domain. 14400 IN MX 0 $domain. mail 14400 IN CNAME ${domain}. www 14400 IN CNAME ${domain}. * 14400 IN A $nip and search '<VirtualHost $ip>' see: <VirtualHost $ip> ServerAlias www.$domain $domain ServerAdmin webmaster\@$domain DocumentRoot $mnt/$user/public_html ServerName www.$domain substitute for: <VirtualHost $ip> ServerAlias *.$domain $domain ServerAdmin webmaster\@$domain DocumentRoot $mnt/$user/public_html ServerName www.$domain Important: The change done in <VirtualHost $ip> IS NOT IMPORTANT, SCRIPT WORKS PERFECTLY WITHOUT HER. Save and protect: ctrl + o ctrl + x chattr +i /scripts/wwwacct Huggs
__________________
Flávio Pedro Intellinoc Specialists --- Software installation, 24/7 server management,and security. hardening Red Hat Certified Engineer | Certified Information Security Systems Professional --- Intelligent Solutions - Intelligent People dedicated servers, collocation, shared and reseller hosting, managed solutions and background services. Last edited by phpman; 04-16-2004 at 07:01 AM. |
|
||||
|
Yesterday the night I configured that for my customer.
See: www.svclub.com.br Create a subdomain and see how it works: To be necessary of help uses the msn: support01@brnoc.com Hug
__________________
Flávio Pedro Intellinoc Specialists --- Software installation, 24/7 server management,and security. hardening Red Hat Certified Engineer | Certified Information Security Systems Professional --- Intelligent Solutions - Intelligent People dedicated servers, collocation, shared and reseller hosting, managed solutions and background services. |
|
||||
|
Roberto,
try editing your httpd.conf file and placing your "static" subdomain test.hiphoprappers.com VirtualHost container before your wildard ServerAlias VirtualHost container and then reload Apache. In theory, Apache should then match on the configured subdomain before hitting the main domains ServerAlias.
__________________
Jonathan Michaelson cPanel Forum Moderator Need your cPanel servers secured and tuned? cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf http://www.configserver.com |
|
||||
|
Wildcard Virtual-Host entry is not required for wildcard dns to function. We have this setup for a few sites and do not use any entry in httpd for the wildcard. You're just creating an admistration nightmare for yourself, as anytime an entry is added to httpd.conf you'll need to manually move it ahead of the wildcard as stated earlier.
__________________
Regards, David Forum Moderator Alternate Support? http://www.cpanelhosts.com Looking for a server? http://www.myvirtualhosting.com Get Dedicated in Toronto at MVH. We are a licensed cPanel PartnerNoc |
|
|||
|
Quote:
Last edited by Roberto; 04-16-2004 at 10:51 PM. |
|
|||
|
Quote:
|
|
|||
|
Quote:
Can you please tell us how you've set this up without the "httpd.conf" change (it is indeed an admistration nightmare ).Regards, Robert |
|
||||
|
Quote:
dgbaker, please tell me how to do it because i need your solution too
__________________
It's me ...... It's me ...... |
|
||||
|
It depends on what you are trying to achieve. If you trying to get anything@domain.com to go to your site then the httpd.conf change is required. If though you are doing it so that newly created sub-domains resolve faster then all you need is the DNS wildcard.
__________________
Regards, David Forum Moderator Alternate Support? http://www.cpanelhosts.com Looking for a server? http://www.myvirtualhosting.com Get Dedicated in Toronto at MVH. We are a licensed cPanel PartnerNoc |
|
||||
|
Quote:
How about that ? Can i have wildcard dns without editing the httpd.conf ?
__________________
It's me ...... It's me ...... |
|
||||
|
Not that I know of. One trick to try is to add the *.domain.com to the ServerAlias line of the virtualhost entry you want them directed to. (I have not tried that yet though).
__________________
Regards, David Forum Moderator Alternate Support? http://www.cpanelhosts.com Looking for a server? http://www.myvirtualhosting.com Get Dedicated in Toronto at MVH. We are a licensed cPanel PartnerNoc |
![]() |
| Thread Tools | |
| Display Modes | |
|
|