Sub-domains not pointing to correct directory

2 posts / 0 new
Last post
#1 Mon, 12/11/2017 - 18:08
mcosta

Sub-domains not pointing to correct directory

Hello all,

I have domain xyz.com, and have updated my registrar with sub-domain test.xyz.com to point to my VPS IP (A record). It works because. when I browse to test.xyz.com, it shows my VPS base Apache2 Ubuntu Default Page. So everything related to routing the sub-domain to my VPS is working.

Now, I create a new virtual server: - Domain name: test.xyz.com - Setup website for domain: Yes (home directory created, etc.)

My apache2 configuration is updated (new virtual server, with document root pointing to the correct place).

Problem is, when I browse to test.xyz.com, it still shows "Apache2 Ubuntu Default Page", not the index.html present in the document root for this sub domain.

What am I missing?

Thanks guys.

Tue, 12/19/2017 - 05:11
tpnsolutions
tpnsolutions's picture

Hi,

Have you reviewed the Apache "error_log"?

Best Regards,
Peter Knowles | TPN Solutions
Email: pknowles@tpnsolutions.com | Skype: tpnassist
Topic locked