Sign up ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I have the domain and the running on apache server. For some reason when I try to visit test.example it is redirected to www.test.example and by consequence a Server not found error is displayed in the browser. Both .htaccess (root and subdomain folder) files are empty.

Additional facts

I have another subdomain pointed to public_html/xyz directory with some content inside (index.html with "hello world message") and it works fine if I use instead of So, can you help me to point to the right direction in order. I have a vps and I am able to change any file if is required.

Below you can find my virtual host configuration.

    DocumentRoot /home/example/public_html/test
    UseCanonicalName Off
    CustomLog /usr/local/apache/domlogs/ combined
    CustomLog /usr/local/apache/domlogs/ "%{%s}t %I  .\n%{%s}t %O ."

    ScriptAlias /cgi-bin/ /home/example/public_html/test/cgi-bin/

    # To customize this VirtualHost use an include file at the following location
    # Include "/usr/local/apache/conf/userdata/std/2/example/*.conf"

share|improve this question
Why are you using ServerAlias if you don't need it? –  j0k Sep 6 '12 at 5:22
Because when I saw the othres virtual servers (auto-generated by cpanel) I thought that this property was required –  manix Sep 6 '12 at 5:25
Looks like a similar problem to:… –  w3d Sep 6 '12 at 8:23

Your Answer


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

Browse other questions tagged or ask your own question.