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

i want to create a dynamic subdomain

i have done this CNAME

* 14440 in <IP>

Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.domains\.com$ [NC]
RewriteCond %{HTTP_HOST} ^([a-z0-9]+)\.domain\.com$ [NC]
RewriteRule (.*) /site.php?url=%1&path=$1 [L,QSA]

but it's gives me a cpanel home page Great Success ! Apache is working on your cPanel® and WHM™ Server

can you help me where i am wrong.

share|improve this question
up vote 0 down vote accepted

The "Great Success" page is probably your default VirtualHost in apache. If your dynamic subdomain (and your main domain) is all you are hosting, just make that your default host. Otherwise, you will need to update settings for your VirtualHost accordingly:

ServerAlias: *

That should hopefully fix the issue. There is some additional info (for slightly more complicated virtualhost setups) at: in case you decide to tweak it even further.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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