php - Virtual host, apache2 and aws no access -
created instance in aws ubuntu 14:04 server, installed , configured apache2 virtual hosts follows:
<virtualhost *:80> serveradmin webmaster@localhost servername magento.com serveralias www.magento.com documentroot /var/www/magento.com/public_html <directory /> options followsymlinks allowoverride none </directory> <directory /var/www/magento.com/public_html> options indexes followsymlinks multiviews allowoverride none order allow,deny allow </directory> <virtualhost>
and
<virtualhost *:80> serveradmin webmaster@localhost servername recomendador.com serveralias www.recomendador.com documentroot /var/www/recomendador.com/public_html <directory /> options followsymlinks allowoverride none </directory> <directory /var/www/recomendador.com/public_html> options indexes followsymlinks multiviews allowoverride none order allow,deny allow </directory> <virtualhost>
my files in:
/var/www/magento.com/public_html/ /var/www/recomendador.com/public_html/
my /etc/hosts :
127.0.0.1 localhost 127.0.0.1 magento.com 127.0.0.1 recomendador.com
when access aws:
http://meu_ip/
opens magento, when access:
http://meu_ip/recomendador.com
or
http://meu_ip/www.recomendador.com
appears not found on server.
if type:
http://meu_ip/magento.com
or
http://meu_ip/www.magento.com
that is, seems recognizes magento , still no utilize servername or serveralias.
i enabled both a2ensite
anyone know might wrong?
thanks
php apache magento ubuntu amazon-web-services
No comments:
Post a Comment