Tag Archives: nginx

Where does PHP get $_SERVER[‘SERVER_NAME’] – Apache versus NGINX

Have you ever wondered where PHP gets the domain name of its server?  I know, the answer is $_SERVER[‘SERVER_NAME’] – but where does that value actually come from?

Posted in Uncategorized | Tagged , , | Comments Off on Where does PHP get $_SERVER[‘SERVER_NAME’] – Apache versus NGINX

Understanding NGINX location rules

NGINX is great. Fast, efficient, etc. But the “location” rules are a bit cryptic and not very well explained in the manuals. There are 4 types of location rule, and are applied with the following priorities:

Posted in Uncategorized | Tagged | Comments Off on Understanding NGINX location rules