Skip to main content
structure
Source Link
Vlastimil Burián
  • 31.1k
  • 66
  • 209
  • 358

What is the meaning of the following particular locationlocation block in Nginx?

location ~ /\.ht {
    deny all;
}

I ask since I have a small WordPress site and I removed this block from its site confconfiguration and restarted the server but the site kept working fine, seemingly.

What is the meaning of the following particular location block in Nginx?

location ~ /\.ht {
    deny all;
}

I ask since I have a small WordPress site and I removed this block from its site conf and restarted the server but the site kept working fine, seemingly.

What is the meaning of the following location block in Nginx?

location ~ /\.ht {
    deny all;
}

I ask since I have a small WordPress site and I removed this block from its configuration and restarted the server but the site kept working fine, seemingly.

Source Link
Arcticooling
  • 4.5k
  • 17
  • 56
  • 107

Nginx location ~ /\.ht

What is the meaning of the following particular location block in Nginx?

location ~ /\.ht {
    deny all;
}

I ask since I have a small WordPress site and I removed this block from its site conf and restarted the server but the site kept working fine, seemingly.