-1
I have two domains, abc.com.br and Xyz.com.br. I am pointing both to the same instance ec2 on Amazon. I have two php (wordpress) applications within this instance, one that is in /var/www/html and another q is in /var/www/html/Xyz.
I am not being able to properly configure httpd.conf to access the site in /var/www/html and Xyz.com.br by accessing the site in /var/www/html/Xyz
I 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>