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.
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>
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.
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