Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to add wildcard serveralias (example: * 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 (, 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

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

  • This question does not appear to be about 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.

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

For the domain names format this will help and this may help you achieve the automation

share|improve this answer

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