-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathdefault
40 lines (31 loc) · 895 Bytes
/
default
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# This template is used to generate one of nginx configurations files.
server {
# SSL configuration
#
listen 4500 ssl http2 default_server;
listen [::]:4500 ssl http2 default_server;
index index.html index.htm index.nginx-debian.html;
server_name _;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ =404;
}
location /nginx_status {
# Turn on nginx stats
stub_status on;
access_log off;
allow 127.0.0.1;
# Send rest of the world to /dev/null #
deny all;
}
# the below comment is kept, in case needed in future
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
ssl_certificate /etc/nginx/ssl/cert.pem;
ssl_certificate_key /etc/nginx/ssl/key.pem;
}