-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
75 lines (67 loc) · 2.2 KB
/
nginx.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
server {
listen 14184;
server_name www.bslcks.org;
rewrite ^ $scheme://bslcks.org$request_uri redirect;
}
server {
listen 14184;
server_name bslcks.org beta.bslcks.org;
location / {
access_log /home/apt9online/www/bslcks/logs/access.log main;
fastcgi_pass unix:/home/apt9online/www/bslcks/bslcks.sock;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param PATH_INFO $fastcgi_script_name;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param SERVER_NAME $server_name;
fastcgi_param SERVER_PORT $server_port;
fastcgi_param SERVER_PROTOCOL $server_protocol;
fastcgi_param CONTENT_TYPE $content_type;
}
#Standard static handlers
location /static {
access_log off;
error_log off;
root /home/apt9online/www/bslcks;
expires max;
}
location /media {
access_log off;
error_log off;
root /home/apt9online/www/bslcks;
}
location /common {
access_log off;
error_log off;
root /home/apt9online/www;
expires max;
}
location /favicon.ico {
root /home/apt9online/www/bslcks/static/img;
access_log off;
error_log off;
expires max;
}
location /apple-touch-icon.png {
root /home/apt9online/www/bslcks/static/img;
access_log off;
error_log off;
expires max;
}
location /apple-touch-icon-precomposed.png {
root /home/apt9online/www/bslcks/static/img;
access_log off;
error_log off;
expires max;
}
location /robots.txt {
root /home/apt9online/www/common;
access_log off;
error_log off;
}
location /humans.txt {
root /home/apt9online/www/common;
access_log off;
error_log off;
}
}