Salve, sono un nuovo utente che si cimenta per la prima volta con nginx. Riscontro un problema, come mi pare segnalato qualche post più sopra, i link che puntano alla radice non aprono l'index ma una pagina di errore 403.
Ho provato a giostrarmi con gli autoindex, ma al più visualizzo i file nelle cartelle, ecco il mio site-available:
Qualche idea?Codice:server { listen 80; ## listen for ipv4 listen [::]:80 default ipv6only=on; ## listen for ipv6 server_name localhost; access_log /var/log/nginx/localhost.access.log; #autoindex on; location / { root /var/www; index index.html index.htm; } #error_page 404 /404.html; # redirect server error pages to the static page /50x.html # #error_page 500 502 503 504 /50x.html; #location = /50x.html { # root /var/www/nginx-default; #} # proxy the PHP scripts to Apache listening on 127.0.0.1:80 # #location ~ \.php$ { #proxy_pass http://127.0.0.1; #} # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 # location ~ \.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /var/www/$fastcgi_script_name; fastcgi_param SERVER_NAME $http_host; fastcgi_ignore_client_abort on; include fastcgi_params; autoindex on; } # deny access to .htaccess files, if Apache's document root # concurs with nginx's one # #location ~ /\.ht { #deny all; #} }
Grazie
Saluti



LinkBack URL
About LinkBacks


Rispondi Citando


Segnalibri