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

Re: nginx "file not found" with index.php

$
0
0
ok it's all ok.

now I need to change my root directory for my web proj.
infact this is part of my /etc/nginx/sites-enabled/default file



server {
listen 80;
listen [::]:80 default_server ipv6only=on;

#root /usr/share/nginx/html;
root /home/ottaviane/Sviluppo/Progetti/HTML-PHP/html;
index index.php index.html index.htm;

# Make site accessible from http://localhost/
server_name _;
...ecc

with root /home/ottaviane/Sviluppo/Progetti/HTML-PHP/html;
it does'nt work!
but if I set root /usr/share/nginx/html;
it works. The two directory are equals.
why it?

thanks, bye.

Viewing all articles
Browse latest Browse all 4759

Trending Articles



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