Ticket #40: mediagoblin_nginx_conf

File mediagoblin_nginx_conf, 1.4 KB (added by Sebastian Spaeth, 14 years ago)

mediagoblin_nginx_conf

Line 
1server {
2 listen 78.47.191.210:80; ## listen for ipv4
3 #listen [::]:81 default ipv6only=on; ## listen for ipv6
4 server_name foo.sspaeth.de;
5 access_log /var/log/nginx/mediagoblin.access.log;
6
7 location /public/media_entries {
8 root /home/spaetz/src/mediagoblin/user_dev/media/;
9 }
10
11 location / {
12 root /var/www/mediagoblin;
13 fastcgi_pass 127.0.0.1:8000;
14 #fastcgi_index index.py;
15 fastcgi_param SCRIPT_FILENAME /index.py$fastcgi_script_name;
16 fastcgi_pass_header Authorization;
17 fastcgi_intercept_errors off;
18 fastcgi_param QUERY_STRING $query_string;
19 fastcgi_param REQUEST_METHOD $request_method;
20 fastcgi_param CONTENT_TYPE $content_type;
21 fastcgi_param CONTENT_LENGTH $content_length;
22 fastcgi_param PATH_INFO $fastcgi_script_name;
23 fastcgi_param REQUEST_URI $request_uri;
24 fastcgi_param DOCUMENT_URI $document_uri;
25 fastcgi_param DOCUMENT_ROOT $document_root;
26 fastcgi_param SERVER_PROTOCOL $server_protocol;
27 fastcgi_param GATEWAY_INTERFACE CGI/1.1;
28 fastcgi_param REMOTE_ADDR $remote_addr;
29 fastcgi_param REMOTE_PORT $remote_port;
30 fastcgi_param SERVER_ADDR $server_addr;
31 fastcgi_param SERVER_PORT $server_port;
32 fastcgi_param SERVER_NAME $server_name;
33 }
34}