[ create a new paste ] login | about

Link: http://codepad.org/8JNUPhZh    [ raw code | fork ]

Plain Text, pasted on Jun 5:
server {
        listen 80;
        server_name zsa.dev;
        root C:/Server/www/ZendSkeletonApplication/public;
        index /index.php;

        # remove trailing slash, that throws ZF router
        rewrite ^/(.*)/$ /$1 break;

        location / {
                # if file is existing, skip fastcgi parsing
                if (-e $request_filename) {
                        break;
                }

                fastcgi_pass 127.0.0.1:9000;
                fastcgi_index index.php;
                include fastcgi_params;
                fastcgi_param SCRIPT_FILENAME C:/Server/www/ZendSkeletonApplication/public/index.php;
                
                # get the relevant environment
                fastcgi_param APPLICATION_ENV staging;
        }

        # expires headers on known filetypes
        location ~* ^.+.(css|js|jpeg|jpg|gif|png|ico) {
                expires 30d;
        }
}


Create a new paste based on this one


Comments: