dummy question...

Laurent CREPET laurent at tnpl127.net
Thu Dec 5 18:10:36 UTC 2013


Just read this:
http://wiki.nginx.org/Pitfalls#Root_inside_Location_Block

...which recommands to put root outside location block...

However, the default.conf installed from nginx rpm contains exactly 
what should not de done, right ?

---
     location / {
         root   /usr/share/nginx/html;
         index  index.html index.htm;
     }

     location = /50x.html {
         root   /usr/share/nginx/html;
     }

     #location ~ \.php$ {
     #    root           html;
     #    fastcgi_pass   127.0.0.1:9000;
     #    fastcgi_index  index.php;
     #    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
     #    include        fastcgi_params;
     #}
---

-- 
Laurent CREPET



More information about the nginx mailing list