lamp + subdomain + fails to load the right DocumentRoot

November 20, 2018 496 views
LAMP Stack Ubuntu 16.04

I want to load http://checkingjob.com/distribuidores every time someone use http://distribuidores.checkingjob.com but if fails and load http://trabajoeficaz.es

What's wrong !! help!

I have created a dns entry in DO
I have created a virtualhost also

<VirtualHost *:80>
ServerAdmin soporte@duna.es
ServerName distribuidores.checkingjob.com

DocumentRoot /var/www/checkingjob.com/public_html/distribuidores

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>

Thanks

1 Answer

I think you are answering another question.

Once again: help !

Have another answer? Share your knowledge.