Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Owain Jones
gliders-webserver
Commits
6b58b2ca
"README.rst" did not exist on "ba78ef992d4803a704676594d10b6ac8768068e9"
Commit
6b58b2ca
authored
8 years ago
by
Owain Jones
Browse files
Options
Download
Email Patches
Plain Diff
switching from php-fpm to php-pm
parent
a96c6ec0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
gliders.nginx.conf
gliders.nginx.conf
+17
-2
No files found.
gliders.nginx.conf
View file @
6b58b2ca
...
...
@@ -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;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment