Subdomain problem

Slash

Verified User
Joined
Jul 20, 2006
Messages
8
Location
Leunen (NL)
I have a strange issue with subdomains (DirectAdmin 1.403 on CentOS host)

Configured a subdomain elo.vandeleur.com under the domain vandeleur.com

The link http://elo.vandeleur.com/icons/nova.jpg does not open but the link http://vandeleur.com/elo/icons/nova.jpg opens normally

Strange thing is that http://elo.vandeleur.com/index.php does not have the same issue?

Please help. I am clueless at the moment.

It’s not a DNS issue. Both hostnames resolve to the correct IP address:

Pinging elo.vandeleur.com [109.75.176.146] with 32 bytes of data:
Reply from 109.75.176.146: bytes=32 time=105ms TTL=51
Reply from 109.75.176.146: bytes=32 time=21ms TTL=51
[..]
Pinging vandeleur.com [109.75.176.146] with 32 bytes of data:
Reply from 109.75.176.146: bytes=32 time=26ms TTL=51
Reply from 109.75.176.146: bytes=32 time=32ms TTL=51
[..]
 
I had the same iss but i opened up the subdomain template

my virtual_host2_sub.conf something of that nature and removed the |www| before ServerName |www|.|SUB|.|DOMAIN|

saved it, removed the subdomain and readded it and that fixed my problem.
 
Thanks for your reply, but unfortunately it did not resolve my issue

According to the logs it looks like this behaviour:

http://help.directadmin.com/item.php?id=242

I have followed the proposed steps and checked /etc/httpd/conf/httpd.conf
/etc/httpd/conf/extra/directadmin-vhosts.conf and the existance of /usr/local/directadmin/data/users/vdleur/httpd.conf (in this case)

Rebuilding Apache configuration did not solve the issue.
 
this file /usr/local/directadmin/data/templates/virtual_host2_sub.conf and change that file to what I stated then restart the server and remove the subdomain and retry it.
 
Back
Top