-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault.conf
More file actions
35 lines (29 loc) · 820 Bytes
/
default.conf
File metadata and controls
35 lines (29 loc) · 820 Bytes
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
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name localhost;
charset utf-8;
# files transfer
client_body_in_file_only clean;
client_body_buffer_size 32K;
client_max_body_size 1026g;
sendfile on;
send_timeout 300s;
# redirect server error pages / and set response status to 200 / ok
#error_page 404 =200 /;
root /usr/share/nginx/html;
index index.html index.html;
# Always serve index.html for any request
# location / {
# root /usr/share/nginx/html;
# try_files $uri /index.html;
# }
# deny access to .htaccess files, if Apache's document root concurs with nginx's one
location ~ /\.ht {
deny all;
}
# deny access to hidden files (beginning with a period)
location ~ /\. {
access_log off; log_not_found off; deny all;
}
}