Task #8923

Task #27561: Complete documentation

Provide a Nginx Server Configuration for FLOW3

Added by Thomas Fritz over 11 years ago. Updated over 7 years ago.

Status:
Under Review
Priority:
Could have
Category:
- Documentation -
Start date:
2010-07-18
Due date:
% Done:

0%

Estimated time:
Sprint:
PHP Version:
Has patch:
No
Complexity:

Description

Provide or let the FLOW3 CLI generate a Nginx (or Apache) server configuration file or document it how one can use FLOW3 with nginx.
This is the main FLOW3 server configuration. On my blog i have posted the other configuration files needed: http://fritzthomas.com/php/600-how-to-use-flow3-with-nginx-working-server-configuration/
The only part i could not test are the "_Resources/Persistent" Urls. But they should work.

server {
        listen          80; 
        server_name     flow3.local *.flow3.local;
        root            /var/www/test/flow3/Web;
        autoindex       off; 

        access_log      /var/www/test/logs/access.log combined;
        error_log       /var/www/test/logs/error.log info;

        location ~ "^/_Resources/Persistent/" {
                rewrite "^(_Resources/Persistent/.{40})/.+(\..+)" /$1$2 break;
        }   

        location ~ "^/_Resources/" {
                access_log off;
                log_not_found off;
                expires max;
                break;
        }   

        location / { 
                rewrite ".*" /index.php last;
        }   

        location = /index.php {
                #fastcgi_param   FLOW3_CONTEXT          Development;
                fastcgi_param   FLOW3_CONTEXT           Production;
                fastcgi_param   FLOW3_REWRITEURLS       1;  
                fastcgi_intercept_errors on; 
                fastcgi_split_path_info ^(.+\.php)(/.+)$;
                include includes/fastcgi_params;

                # "Upstream" defined in nginx.conf
                fastcgi_pass    php-5.3.2; 
        }   
}


Related issues

Related to TYPO3.Flow - Feature #8981: Security/Performance: Provide Webserver Configuration file for common webservers - do not use .htaccessNew2010-07-21

Actions
Related to TYPO3.Flow - Task #27573: Update installation documentationResolvedKarsten Dambekalns2011-06-20

Actions

Also available in: Atom PDF