Hello,
Have this 403 error. My website is developped with Laravel.
NGINX CONFIG:
server { listen 127.0.0.1:8080 default_server; server_name localhost; root /usr/share/nginx/html; index public/index.php; }
The index, is located on the folder public. But when I goes to my site, I start download the index, but I didn’t see the index… Have try with the view of the index located here -> resources/views/main/main.blade.php
But, same error.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
You have a few errors in your server block. Below is a corrected version. As it is a PHP:Laravel project you will need to add the necessary directives for NGINX to know how to interoperate PHP.
server {
listen 8080;
server_name yourdomain.com;
root /usr/share/nginx/html/public;
index index.php index.html;
}
You can find info you need here. https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-in-ubuntu-16-04
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.