Welcome! Log In Create A New Profile

Advanced

dummy question...

Laurent CREPET
December 05, 2013 01:12PM
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

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

dummy question...

Laurent CREPET December 05, 2013 01:12PM

Re: dummy question...

itpp2012 December 05, 2013 01:52PM

Re: dummy question...

Laurent CREPET December 05, 2013 02:00PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 161
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready