1

Is it possible to add wildcard serveralias (example: *.somesite.com) in an apache server without modifying httpd.conf manually? I use a DNS different from my hosting server and i have added asterisk A record to my DNS to point all request like (test.somesite.com,test2.somesite.com) to my hosting servers IP, but i don't see anyway of adding asterisk serveraliases to apache httpd.conf file in my cpanel. Pls is there a solution?

2 Answers2

1

Nope, there is no solution if you do not have access to httpd.conf.

The reason is that is where Apache checks every time it gets a request - it is not delegated elsewhere. If it fails to find a match, it will give up, and return a default page. There is no way to work around this, I'm afraid.

On the other hand, many hosts are more than willing to make such a small change to their httpd.confs for you. If they're not, you should really switch host.

Jay
  • 6,439
  • 24
  • 34
0

For the domain names format this will help http://en.wikipedia.org/wiki/Domain_Name_System and this may help you achieve the automation https://stackoverflow.com/questions/11803263/automating-apache-virtual-hosts