Jump to content

NGINX root vs location directive


ala888

Recommended Posts

server{listen 80;server_name www.example.com;root /var/www/html;#whats the point of thislocation / {...}}

Doesnt root already take care of the filing system? Why is this necessary?

Or is root just a reserved variable for use with php's superglobal $_SERVER

 

p.s. is fastcgi_index directive really necessary when

location ~.php$ already filters out non php stuff?

Edited by ala888
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...