Setup Virtual Host on Nginx for Magento
1. Create your project folder at path var/www/html
cd /var/www/html
mkdir magentodemo // create project folder if you have not created any folder yet
2.Create a virtual host for your Magento store
sudo nano /etc/nginx/sites-available/magentodemo.com
3. Add the below configuration in the host file
upstream fastcgi_backend {
server unix:/run/php/php7.1-fpm.sock;
}
server {
error_log /var/log/nginx/magentodemo-error.log;
listen 80;
server_name localhost.magentodemo.com;
set $MAGE_ROOT /var/www/html/magentodemo;
include /var/www/html/magentodemo/nginx.conf.sample;
}
Replace magentodemo.com with your domain name
4. Activate the newly created virtual host by creating a symlink to the /etc/nginx/sites-enabled directory
ln -s /etc/nginx/sites-available/magentodemo.com /etc/nginx/sites-enabled/
5. Test the configuration
nginx -t
6. Create an entry in your host file
sudo nano /etc/hosts
An entry like below in host file
127.0.0.1 localhost.magentodemo.com
7. Hit the url on your browser
http://
localhost.magentodemo.com
It Should work !!
Following these steps setting up a virtual host for Magento on Nginx appears quite manageable. Thanks for breaking it down into easy to follow tasks.
Plumbing Services in Cameron Park
Geometry Lite's recent improvements introduce new twists while preserving the addictive "gotta beat it!" gameplay of Geometry Dash
De très bons points que vous avez soulevés ici. C'est super... Je pense que vous avez soulevé des points vraiment intéressants. Continuer. geometry dash
I found this post very exciting. I am also sending it to my friends to enjoy this blog.
5lbs Of Pressure Rudy Pankow Brown Jacket
I really like the way that you have expressed yourself. There is a lot to be admired from this post. You might want to click oN 5lbs Of Pressure Rudy Pankow Brown Jacket
When taking the rice purity test, it's important to create a project folder at /var/www/html, set up a virtual host for your Magento store, and follow the configuration steps provided to ensure everything works smoothly.
Please rotate your device
We don't support landscape mode on your device. Please rotate to portrait mode for the best view of our site