disable default server
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
server {
|
||||
listen 0.0.0.0:80 default_server;
|
||||
if ($host !~ ^(%SERVER_NAME%)$) {
|
||||
return 444;
|
||||
}
|
||||
|
||||
@@ -67,15 +67,12 @@ http {
|
||||
# server config
|
||||
include /etc/nginx/server.conf;
|
||||
|
||||
# disable default server
|
||||
%DISABLE_DEFAULT_SERVER%
|
||||
|
||||
# check if country is blocked
|
||||
# list of blocked country
|
||||
%BLOCK_COUNTRY%
|
||||
|
||||
# check if user agent is blocked
|
||||
# list of blocker user agents
|
||||
%BLOCK_USER_AGENT%
|
||||
|
||||
# enable ModSecurity
|
||||
# enable/disable ModSecurity
|
||||
%USE_MODSECURITY%
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@ server {
|
||||
%AUTO_LETS_ENCRYPT%
|
||||
%REDIRECT_HTTP_TO_HTTPS%
|
||||
server_name %SERVER_NAME%;
|
||||
%DISABLE_DEFAULT_SERVER%
|
||||
%SERVE_FILES%
|
||||
if ($request_method !~ ^(%ALLOWED_METHODS%)$)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user