Answers for "magento 2 create virtual host"

1

create virtual host for magento 2

<VirtualHost *:80>
    ServerName magento2.local
    ServerAlias www.magento2.local
    DocumentRoot /var/www/html/magento
    <Directory /var/www/html/magento/>
        AllowOverride All
    </Directory>  
</VirtualHost>
Posted by: Guest on October-20-2020
1

create virtual host for magento 2

sudo vi /etc/apache2/sites-available/magento.conf
sudo a2ensite magento.conf
sudo service apache2 restart
Posted by: Guest on October-20-2020

Browse Popular Code Answers by Language