How to install magento on virtual host?

2

I'm trying to install magento on my localhost using virtual host (so it can work) but even I already creating the file in /etc/apache2/sites-available with the name magento.conf with the code:

<VirtualHost *:80>
DocumentRoot /var/www/magento
<Directory /var/www/magento/>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
</Directory>

If I try to access http://magento.localhost the apache page is usually loaded Apache2 Ubuntu Default Page and the files in the folder do not open so I can start the magento installation.

Does anyone have an idea of what might be happening?

    
asked by anonymous 09.08.2015 / 01:22

1 answer

0

Add the ServerName option within your vhost , and check that the NameVirtualHost option is enabled (this parameter is global):

NameVirtualHost *:80
<VirtualHost *:80>
    ServerName magento.localhost
    DocumentRoot /var/www/magento
    <Directory /var/www/magento/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
    </Directory>
</VirtualHost>

Other than that, I see no problems.

    
09.08.2015 / 01:26