php - CGI Index yields 403 (Forbidden) -


i'm running nginx php-cgi on ubuntu computer. things seem working okay except major detail visiting / yields "403 forbidden" nginx. visiting /index.php works fine. if add index.html , go / works too.

server {     root /home/ajcrites/projects/php/devays/public/;     server_name sub.localhost;      location ~ \.php$ {         try_files $uri =404;         fastcgi_split_path_info ^(.+\.php)(/.+)$;         fastcgi_pass 127.0.0.1:9000;         fastcgi_index index.php;         include fastcgi_params;     } } 

it seem fastcgi_index index.php; cover this, not case. there need add / serve /index.php?

you need add index.php index directive have index index.html index.php;

see http://nginx.org/en/docs/http/ngx_http_index_module.html


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -