"README.rst" did not exist on "ba78ef992d4803a704676594d10b6ac8768068e9"
Commit 6b58b2ca authored by Owain Jones's avatar Owain Jones
Browse files

switching from php-fpm to php-pm

parent a96c6ec0
......@@ -35,6 +35,15 @@ server {
# strip app.php/ prefix if it is present
rewrite ^/$symfonyfile\.php/?(.*)$ /$1 permanent;
location @ppm {
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://127.0.0.1:8005;
error_page 502 /502.html;
}
location / {
limit_req zone=gliders burst=5;
set $index_file $symfonyfile".php";
......@@ -42,7 +51,8 @@ server {
return 503;
}
index $index_file;
try_files $uri @rewriteapp;
# try_files $uri @rewriteapp;
try_files $uri @ppm;
}
location /dashboard.php {
......@@ -117,7 +127,8 @@ server {
# }
# pass the PHP scripts to FastCGI server from upstream phpfcgi
location ~ ^/(app|app_dev|config)\.php(/|$) {
# location ~ ^/(app|app_dev|config)\.php(/|$) {
location @fpm {
# fastcgi_pass hhvmfcgi;
fastcgi_pass phpfcgi;
fastcgi_intercept_errors on;
......@@ -129,6 +140,10 @@ server {
fastcgi_param HTTPS off;
}
location ~ ^/(app|app_dev|config)\.php(/|$) {
try_files $uri @fpm;
}
# location @fallback {
# fastcgi_pass phpfcgi;
# fastcgi_intercept_errors on;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment