Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question
    
Is there any reason you can't manage this virtual host directly, outside of cpanel? –  Shane Madden Oct 28 '12 at 19:00
    
yes, i'm on a shared hosting server and i don't have direct access to httpd.conf file –  Favourite Chigozie Onwuemene Oct 28 '12 at 21:36
    
This question appears to be off-topic because it is about use of shared web hosting by an end-user or reseller. –  Michael Hampton Jun 28 '13 at 17:51
add comment

closed as off-topic by Michael Hampton Jun 28 '13 at 17:51

  • This question does not appear to be about professional server, networking, or related infrastructure administration within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

2 Answers

up vote 1 down vote accepted

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.

share|improve this answer
add comment

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

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.