Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-app / docs / _static / synnefo.nginx.conf @ 5ba2cfd2

History | View | Annotate | Download (922 Bytes)

1 972820a2 Kostas Papadimitriou
server {
2 972820a2 Kostas Papadimitriou
    listen 80;
3 972820a2 Kostas Papadimitriou
4 9521d937 Georgios D. Tsoukalas
    server_name example.synnefo.org;
5 972820a2 Kostas Papadimitriou
    
6 972820a2 Kostas Papadimitriou
    root /var/lib/synnefo/;
7 972820a2 Kostas Papadimitriou
    
8 972820a2 Kostas Papadimitriou
    # serving static files 
9 972820a2 Kostas Papadimitriou
    location /static  {
10 972820a2 Kostas Papadimitriou
        autoindex on;
11 972820a2 Kostas Papadimitriou
        root /var/lib/synnefo/;
12 972820a2 Kostas Papadimitriou
    }
13 972820a2 Kostas Papadimitriou
14 972820a2 Kostas Papadimitriou
    location / {
15 972820a2 Kostas Papadimitriou
        
16 972820a2 Kostas Papadimitriou
        # host and port to fastcgi server
17 972820a2 Kostas Papadimitriou
        fastcgi_pass 127.0.0.1:8015;
18 972820a2 Kostas Papadimitriou
19 972820a2 Kostas Papadimitriou
        fastcgi_param PATH_INFO          $fastcgi_script_name;
20 972820a2 Kostas Papadimitriou
        fastcgi_param REQUEST_METHOD     $request_method;
21 972820a2 Kostas Papadimitriou
        fastcgi_param QUERY_STRING       $query_string;
22 972820a2 Kostas Papadimitriou
        fastcgi_param CONTENT_TYPE       $content_type;
23 972820a2 Kostas Papadimitriou
        fastcgi_param CONTENT_LENGTH     $content_length;
24 972820a2 Kostas Papadimitriou
        fastcgi_param SERVER_ADDR        $server_addr;
25 972820a2 Kostas Papadimitriou
        fastcgi_param SERVER_PORT        $server_port;
26 972820a2 Kostas Papadimitriou
        fastcgi_param SERVER_NAME        $server_name;
27 972820a2 Kostas Papadimitriou
        fastcgi_param  SERVER_PROTOCOL  $server_protocol;
28 972820a2 Kostas Papadimitriou
        fastcgi_pass_header Authorization;
29 972820a2 Kostas Papadimitriou
        fastcgi_intercept_errors off;
30 972820a2 Kostas Papadimitriou
    }
31 972820a2 Kostas Papadimitriou
}