blob: cbf036cd78aa9492dde3612dac89a1a046a3cff2 (
plain)
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
|
server {
listen 80;
listen [::]:80;
server_name piccastapp.com www.piccastapp.com;
access_log /var/log/nginx/piccast_access.log;
error_log /var/log/nginx/piccast_error.log;
gzip on;
gzip_http_version 1.1;
gzip_min_length 1000;
gzip_vary on;
gzip_proxied expired no-cache no-store private auth;
gzip_types text/plain application/xml application/json;
gzip_disable "MSIE [1-6]\.";
gzip_disable "wget";
location = / {
root /srv/http/piccastapp.com/www;
index index.html index.htm frontpage.html;
}
location / {
# Fallthrough to django if file not found
fastcgi_param PATH_INFO $fastcgi_script_name;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param SERVER_NAME $server_name;
fastcgi_param SERVER_PORT $server_port;
fastcgi_param SERVER_PROTOCOL $server_protocol;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_pass_header Authorization;
fastcgi_intercept_errors off;
if (!-f $request_filename) {
fastcgi_pass unix:/srv/http/piccastapp.com/django.sock;
break;
}
root /srv/http/piccastapp.com/www;
index index.html index.htm;
}
}
server {
listen 80;
listen [::]:80;
server_name piccast.memeschemes.com;
access_log /var/log/nginx/piccast_access.log;
error_log /var/log/nginx/piccast_error.log;
root /srv/http/piccastapp.com/www;
index index.html index.htm;
rewrite ^(.*)$ http://piccastapp.com$1 permanent;
}
|