I have two domains, abc.com.br and xyz.com.br. I am pointing both to the same ec2 instance on Amazon. I have two php (wordpress) applications within this instance, one that stays in / var / www / html and another one is in / var / www / html / xyz.
I am not able to properly configure httpd.conf to access through abc.com.br access / var / www / html and xyz.com.br access the site in / var / www / html / xyz
I've added the following code
<VirtualHost xyz.com.br:80>
ServerAdmin [email protected]
DocumentRoot "/var/www/html/xyz"
ServerName xyz.com.br
Errorlog "logs/error_log"
CustomLog "logs/access_log" common
Alias /wedding "/var/www/html/xyz"
</VirtualHost>
<VirtualHost abc.com.br:80>
ServerAdmin [email protected]
DocumentRoot "/var/www/html"
ServerName abc.com.br
Errorlog "logs/error_log"
CustomLog "logs/access_log" common
</VirtualHost>