added nginx docker image
This commit is contained in:
16
nginx/conf/nginx.vh.no-default.conf
Normal file
16
nginx/conf/nginx.vh.no-default.conf
Normal file
@@ -0,0 +1,16 @@
|
||||
# Drop requests for unknown hosts
|
||||
#
|
||||
# If no default server is defined, nginx will use the first found server.
|
||||
# To prevent host header attacks, or other potential problems when an unknown
|
||||
# servername is used in a request, it's recommended to drop the request
|
||||
# returning 444 "no response".
|
||||
|
||||
server {
|
||||
listen 80 default_server;
|
||||
return 444;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl http2 default_server;
|
||||
ssl_reject_handshake on;
|
||||
}
|
Reference in New Issue
Block a user