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 have configured a subdomain in my Apache2 httpd server, but having a problem. I can reach the subdomain by using but do not access it by using

My top-level domain say, can be reached with both and

Here is source from my subdomain config file in sites-available

<VirtualHost *:80>

    ServerAdmin admin@domain

    DocumentRoot /var/www/domain/subdomain
    <Directory />
        Options FollowSymLinks
        AllowOverride None
    <Directory /var/www/domain/subdomain>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        allow from all

Where is the problem? Here in this configuration or in A records of my domain name?

EDIT : I get this message from my ISP when I try to reach by = "Sorry, the website you were looking for is unavailable."

And when I used a proxy to reach it, it shows this error message = "The requested resource could not be loaded. libcurl returned the error: Couldn't resolve host '"

share|improve this question
What happens or error message do you get when you try to access ? – Iain Aug 27 '12 at 9:04
@Iain: I cannot reach there, my ISP shows this message "Sorry, the website you were looking for is unavailable." – Abhi Aug 27 '12 at 9:06

You'd need to provide more details, ie. what error is returned when you try to reach your My guess is you don't have in your DNS server.

share|improve this answer
I have edited my question to include error message, have a look now – Abhi Aug 27 '12 at 9:14
Can you paste the apache2 error report. – Caterpillar Aug 27 '12 at 9:23

Couldn't resolve host '"

You need to configure your DNS to resolve to your server's IP address.

share|improve this answer
I am not using DNS, I am using A records and I have added subdomain to it. – Abhi Aug 27 '12 at 9:15
@Abhi: You are using DNS what do you think an A record is ? – Iain Aug 27 '12 at 9:29
I figured it out, I had to configure cname for it to work with www as well. – Abhi Sep 4 '12 at 7:13
So, like I said you had to configure your DNS ... – Iain Sep 4 '12 at 7:18

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.