I have configured a subdomain in my Apache2 httpd server, but having a problem. I can reach the subdomain by using
http://subdomain.domain.com but do not access it by using
My top-level domain say, domain.com can be reached with both
Here is source from my subdomain config file in sites-available
<VirtualHost *:80> ServerName subdomain.domain.com ServerAlias www.submdomain.domain.com ServerAlias http://www.subdomain.domain.com ServerAdmin admin@domain DocumentRoot /var/www/domain/subdomain <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/domain/subdomain> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory>
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
www.subdomain.domain.com = "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 'www.subdomain.domain.com"