Redirect domains pointed at a nameserver

Discussion in 'Site & Server Administration' started by jeremyalyea, Apr 8, 2007.

  1. #1
    Hello,

    I have my own nameserver and have several(100) parked domains pointing to it. I would like each of those domains to be forwarded to the same account on my server.

    So instead of having to create 100 hosting accounts on my server and then doing a 302 redirect on each one to a specific domain, I would like to be able to have all of the domains that are pointed to my nameservers that do not have hostings accounts to be forwarded to a url or specific account.

    Hopefully this makes sense. The registrar where these domains are currently registered does not offer free forwarding so I would like to use this as a workaround.

    Any help is greatly appreciated.
     
    jeremyalyea, Apr 8, 2007 IP
  2. Estevan

    Estevan Peon

    Messages:
    120
    Likes Received:
    8
    Best Answers:
    1
    Trophy Points:
    0
    #2
    hello
    use ServerAlias in apache

    create a dns entries in your server and add a domains in ServerAlias

    example
    <VirtualHost *:80>
    ServerName myserver.com:80
    ServerAlias www.domain1.com domain1.com www.domain2.com domain2.com ...
    DocumentRoot /home/dir/httpdocs
    </VirtualHost>
     
    Estevan, Apr 8, 2007 IP
  3. jeremyalyea

    jeremyalyea Well-Known Member

    Messages:
    353
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    138
    #3
    Thanks for your help. Could you please expand?
    I want all of the domains forwarded to the same domain. So when there is type in traffic on any of the 100 domains, I would like them redirected to 'mymainsite.com'. All of the domains are pointed to the same nameserver.
     
    jeremyalyea, Apr 8, 2007 IP
  4. Estevan

    Estevan Peon

    Messages:
    120
    Likes Received:
    8
    Best Answers:
    1
    Trophy Points:
    0
    #4
    no only add nameserver in your domain registar you need create a dns entries in your server ok !

    using ServerAlias all sites open the mymainsite.com
     
    Estevan, Apr 8, 2007 IP