Skip to content
SSilence edited this page Jan 20, 2013 · 12 revisions

Checkout the selfoss webpage for further information: http://selfoss.aditu.de

nginx configuration

an example nginx configuration (thanks Mic92). See also https://gist.github.com/4091461

    # rss.higgsboson.tk                                                                                                                               
    server {                                                                                                                            
        listen [::]:80;                   
        listen [::]:443 ssl;                                                                                                                         
        server_name rss.yourdomain.com;                                                                                                                
        root /var/www/selfoss/;                                                                                                                           
                                                                                                                                                      
        access_log /var/log/nginx/rss.access.log main;                                                                                                
        error_log /var/log/nginx/rss.error.log info;                                                                                                  
                                                                                                                                                      
        location ~* \ (gif|jpg|png) {                                                                                                                 
          expires 30d;                                                                                                                                
        }                                                                                                                                             
                                                                                                                                                      
        location / {                                                                                                                                  
          index index.php index.html index.htm;                                                                                                       
          try_files $uri /public/$uri /index.php$is_args$args;                                                                                        
        }                                                                                                                                             
                                                                                                                                                      
        location ~ \.php$ {                                                                                                                           
          fastcgi_pass backend;                                                                                                                       
          fastcgi_index index.php;                                                                                                                    
          fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;                                                                          
          include fastcgi_params;                                                                                                                     
        }                                                                                                                                             
    } 

Clone this wiki locally