-
Notifications
You must be signed in to change notification settings - Fork 26
/
nginx.local.conf
executable file
·48 lines (36 loc) · 1.17 KB
/
nginx.local.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
43
44
45
46
47
48
# This is an example nginx conf file that shows how to host the GUI locally using
# nginx. This conf file assumes the complied html/javascript is located in /www/current/
worker_processes 4;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
access_log /www/logs/access.log;
error_log /www/logs/error.log;
log_not_found off;
sendfile on;
keepalive_timeout 165;
gzip on;
server {
listen 80;
server_name 127.0.0.1;
root /www/current/;
ssl off;
location ~ ^/(img|images|photo|photos|page|pages|uploads|countries|make|pic|foto|list|pictures|news|feed|rotated|carimg|category|reviews) {
access_log off;
return 404;
}
location ~ ^/[\w\d\.-]+\.(js|css|dat|png|json|ico)$ {
access_log /www/logs/root_access.log;
error_log /www/logs/root_error.log;
try_files $uri 404;
}
location / {
access_log /www/logs/root1_access.log;
error_log /www/logs/root1_error.log;
try_files $uri /index.html;
}
}
}