Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

directory index of "" is forbidden

$
0
0
Ubuntu 14.04
PHP Version => 5.5.9-1ubuntu4.26

I have hit a brick wall on this issue. Any insight is greatly greatly appreciated.

Error for NGINX logs

2018/10/29 17:46:09 [error] 3681#0: *14 directory index of "/usr/share/nginx/html/appointment-reminders-laravel/public/" is forbidden, client: 177.73.203.229, server: appointments.hudsonstreet.us, request: "GET / HTTP/1.1", host: "54.91.193.189:80"

Sites Available default file:

server {
listen 80;
listen [::]:80;
root /usr/share/nginx/html/appointment-reminders-laravel/public;
index index.php index.html index.htm;
server_name appointments.hudsonstreet.us;

location / {
try_files $uri /index.php?$query_string;
}


location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_index index.php;
fastcgi_pass unix:/var/run/php/php7.1-fpm.sock;
include fastcgi_params;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}

}

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>