Question

lamp + subdomain + fails to load the right DocumentRoot

Posted November 20, 2018 637 views
LAMP StackUbuntu 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

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

I think you are answering another question.

Once again: help !

Submit an Answer