403 Forbidden on nginx/1.4.6 (Ubuntu) - Laravel
2022-08-30 17:50:10
我不断得到403 Forbidden
我的设置:
/etc/nginx/sites-available/default
违约
server {
listen 80;
root home/laravel-app/;
index index.php index.html index.htm;
server_name example.com;
location / {
try_files $uri $uri/ /index.html;
}
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/www;
}
# pass the PHP scripts to FastCGI server listening on the php-fpm socket
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
更新
我按照这个指示: 这里
任何提示/建议都将是一个巨大的帮助!