Skip to content

Commit 6ebf7cb

Browse files
committed
Update nginx.conf.template
1 parent 39eb4bb commit 6ebf7cb

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

webserver/templates/nginx.conf.template

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -70,34 +70,12 @@ server {
7070
proxy_set_header Proxy "";
7171
}
7272
#
73-
# deny access to .htaccess vb. files, if Apache's document root
74-
location ~/\. {
75-
deny all;
76-
log_not_found off;
77-
}
78-
#
79-
location ~ /.well-known {
80-
allow all;
81-
}
82-
#
83-
location = /favicon.ico {
84-
log_not_found off;
85-
access_log off;
86-
}
87-
#
88-
location = /robots.txt {
89-
allow all;
90-
log_not_found off;
91-
access_log off;
92-
}
93-
#
9473
access_log off;
9574
error_log /var/log/nginx/${NGINX_HOST}-443.error.log error;
9675
}
9776

9877
server {
99-
#listen 81;
100-
#listen [::]:81 ipv6only=on;
78+
#listen 90;
10179
#
10280
server_name ${NGINX_HOST} www.${NGINX_HOST};
10381
#
@@ -122,6 +100,28 @@ server {
122100
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
123101
}
124102
#
103+
#
104+
# deny access to .htaccess vb. files, if Apache's document root
105+
location ~/\. {
106+
deny all;
107+
log_not_found off;
108+
}
109+
#
110+
location ~ /.well-known {
111+
allow all;
112+
}
113+
#
114+
location = /favicon.ico {
115+
log_not_found off;
116+
access_log off;
117+
}
118+
#
119+
location = /robots.txt {
120+
allow all;
121+
log_not_found off;
122+
access_log off;
123+
}
124+
#
125125
access_log off;
126-
error_log /var/log/nginx/${NGINX_HOST}-81.error.log error;
126+
error_log /var/log/nginx/${NGINX_HOST}-90.error.log error;
127127
}

0 commit comments

Comments
 (0)