Hi, Jim, I just use .htaccess as an example. Basically, I find it is hard to configure globally for all virutal hosts at one place because location must be inside the server directive. Another example is - apache alias equivalent - in apache, I can just add line alias /phpMyAdmin /path/to/phpMyAdmin then http://all-virtual-hosts/phpMyAdmin is available to all hosts. In Nginx, I have toby qian - How to...
I am coming from Apache, very new to Nginx. A lot of my thinkings are still Apache-style. I know Nginx is different. So, how to specify global settings? For example, to deny access to .ht files. I don't want to write location ~ /\.ht { deny all; } in every virtual hosts. If I forget to the settings in some hosts, these hosts are at risk. Is there an more bomb proof way to achieveby qian - How to...