Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-app / docs / _static / synnefo.nginx.conf @ 4911365b

History | View | Annotate | Download (922 Bytes)

1
server {
2
    listen 80;
3

    
4
    server_name example.synnefo.org;
5
    
6
    root /var/lib/synnefo/;
7
    
8
    # serving static files 
9
    location /static  {
10
        autoindex on;
11
        root /var/lib/synnefo/;
12
    }
13

    
14
    location / {
15
        
16
        # host and port to fastcgi server
17
        fastcgi_pass 127.0.0.1:8015;
18

    
19
        fastcgi_param PATH_INFO          $fastcgi_script_name;
20
        fastcgi_param REQUEST_METHOD     $request_method;
21
        fastcgi_param QUERY_STRING       $query_string;
22
        fastcgi_param CONTENT_TYPE       $content_type;
23
        fastcgi_param CONTENT_LENGTH     $content_length;
24
        fastcgi_param SERVER_ADDR        $server_addr;
25
        fastcgi_param SERVER_PORT        $server_port;
26
        fastcgi_param SERVER_NAME        $server_name;
27
        fastcgi_param  SERVER_PROTOCOL  $server_protocol;
28
        fastcgi_pass_header Authorization;
29
        fastcgi_intercept_errors off;
30
    }
31
}