Ubuntu virtual host displaying Nginx Ubuntu Default Page

0
117

Write Configure Blash Shell

/etc/nginx/sites-available/test.com

sudo ln -s /etc/nginx/sites-available/local.sarker.com /etc/nginx/sites-enabled

sudo service nginx reload

sudo nginx -t

sudo service nginx restart

sudo nano /etc/hosts

/var/www/html/.. : sudo chmod -R 0777 storage

/var/www/html/.. : sudo chmod -R 0777 bootstrap

/var/www/html/.. :

/var/www/html/... : php artisan serve

You need to remove the file default, located in /etc/nginx/sites-enabled:


Then restart nginx: