-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.conf
42 lines (36 loc) · 1.2 KB
/
default.conf
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
41
42
# catch-all server (default) example
server {
listen 80 default_server;
listen 443 ssl default_server;
# Since most of my servers not using IPv6, I commented this out by default
# listen [::]:80 default_server;
# listen [::]:443 ssl default_server;
ssl_reject_handshake on;
server_name _;
# access_log /var/log/nginx/host.access.log main;
# example Nginx VTS display page
# location /status {
# # To calculate traffic except for status page
# vhost_traffic_status_bypass_limit on;
# vhost_traffic_status_bypass_stats on;
#
# vhost_traffic_status_display;
# vhost_traffic_status_display_format html;
# access_log off;
# # Example restricting VTS access to specific IP
# allow 127.0.0.1;
# allow 192.168.0.0/24;
# deny all;
# }
location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
# error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}
# vim: ft=nginx ts=4 sw=4 et