PHP Classes
elePHPant
Icontem

File: tests/build/nginx.conf

Recommend this page to a friend!
  Classes of Thien Tran  >  Phalcon Cashier  >  tests/build/nginx.conf  >  Download  
File: tests/build/nginx.conf
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Phalcon Cashier
Access subscription services provided by Stripe
Author: By
Last change:
Date: 3 years ago
Size: 928 bytes
 

 

Contents

Class file image Download
worker_processes 1;

events {
    worker_connections 1024;
}

http {
    include       mime.types;
    default_type  application/octet-stream;

    gzip  on;

    upstream php {
        server 127.0.0.1:9000;
    }

    server {
        listen 80;
        server_name pforum.loc;

        root  %TRAVIS_BUILD_DIR%/public;
        index index.php;

        try_files $uri $uri/ @rewrite;

        location @rewrite {
            rewrite ^/(.*)$ /index.php?_url=/$1 last;
        }

        location ~ \.php$ {
            try_files $uri =404;

            fastcgi_split_path_info ^(.+\.php)(/.+)$;
            fastcgi_pass            php;

            fastcgi_index index.php;
            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
            fastcgi_param PATH_INFO       $fastcgi_path_info;
            fastcgi_param HTTP_REFERER    $http_referer;

            include fastcgi_params;
        }
    }
}