Problem Setting Up Wildcards

Discussion in 'Site & Server Administration' started by solarpanelsdirect, Nov 30, 2009.

  1. #1
    So I logged into godaddy.

    Set my A record:
    * - > 69.64.38.19

    Logged into apache on my server
    Editted httpd.conf and added
    
    <VirtualHost 69.64.38.19:80>
          ServerName rentalpeak.info
          ServerAlias *.rentalpeak.info rentalpeak.info
          DocumentRoot /home/rentalpeak
    </VirtualHost>
    
    Code (markup):
    I am still getting page not found, and ping is dead saying it cannot find host... Is there something I am missing about setting up wildcard subdomains? I am hosting several domains on the server... never done wildcard bgefore though.
     
    solarpanelsdirect, Nov 30, 2009 IP
  2. Vinsar

    Vinsar Active Member

    Messages:
    100
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    53
    #2
    Your vhost section should be:

    ServerAlias should not have double entry.

    For more info read http://ma.tt/2003/10/wildcard-dns-and-sub-domains/

    And do remember to take backup of httpd.conf before making changes and restart apache after changes.
     
    Vinsar, Dec 2, 2009 IP
  3. hostwebdata

    hostwebdata Peon

    Messages:
    264
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    It also take 12 - 24 hours to update the DNS all over the world so wait for that to
     
    hostwebdata, Dec 2, 2009 IP