mirror of
https://github.com/cytopia/devilbox.git
synced 2025-02-21 09:51:49 +00:00
REL-0.9 Use hostnames instead of IP addresses
This commit is contained in:
parent
3f7fe50113
commit
90a65d8090
@ -3,4 +3,4 @@
|
|||||||
AddType application/x-httpd-fastphp5 .php
|
AddType application/x-httpd-fastphp5 .php
|
||||||
Action application/x-httpd-fastphp5 /php5-fcgi
|
Action application/x-httpd-fastphp5 /php5-fcgi
|
||||||
Alias /php5-fcgi /usr/local/bin/php-fcgi
|
Alias /php5-fcgi /usr/local/bin/php-fcgi
|
||||||
FastCgiExternalServer /usr/local/bin/php-fcgi -host 172.16.238.11:9000 -pass-header Authorization
|
FastCgiExternalServer /usr/local/bin/php-fcgi -host php:9000 -pass-header Authorization
|
||||||
|
@ -6,12 +6,12 @@
|
|||||||
# If you have enough idle workers, this would only improve the performance marginally
|
# If you have enough idle workers, this would only improve the performance marginally
|
||||||
#
|
#
|
||||||
# enablereuse requires Apache 2.4.11 or later
|
# enablereuse requires Apache 2.4.11 or later
|
||||||
#<Proxy "fcgi://172.16.238.11:9000/" enablereuse=on max=10></Proxy>
|
#<Proxy "fcgi://php:9000/" enablereuse=on max=10></Proxy>
|
||||||
<FilesMatch "\.php$">
|
<FilesMatch "\.php$">
|
||||||
Require all granted
|
Require all granted
|
||||||
# Pick one of the following approaches
|
# Pick one of the following approaches
|
||||||
# Use the standard TCP socket
|
# Use the standard TCP socket
|
||||||
SetHandler "proxy:fcgi://172.16.238.11:9000"
|
SetHandler "proxy:fcgi://php:9000"
|
||||||
# If your version of httpd is 2.4.9 or newer (or has the back-ported feature), you can use the unix domain socket
|
# If your version of httpd is 2.4.9 or newer (or has the back-ported feature), you can use the unix domain socket
|
||||||
#SetHandler "proxy:unix:/path/to/app.sock|fcgi://localhost/:9000"
|
#SetHandler "proxy:unix:/path/to/app.sock|fcgi://localhost/:9000"
|
||||||
</FilesMatch>
|
</FilesMatch>
|
||||||
|
@ -35,7 +35,7 @@ server {
|
|||||||
fastcgi_split_path_info ^(.+\.php)(.*)$;
|
fastcgi_split_path_info ^(.+\.php)(.*)$;
|
||||||
|
|
||||||
#### FPM Server
|
#### FPM Server
|
||||||
fastcgi_pass 172.16.238.11:9000;
|
fastcgi_pass php:9000;
|
||||||
|
|
||||||
fastcgi_index index.php;
|
fastcgi_index index.php;
|
||||||
fastcgi_intercept_errors on;
|
fastcgi_intercept_errors on;
|
||||||
|
@ -35,7 +35,7 @@ server {
|
|||||||
fastcgi_split_path_info ^(.+\.php)(.*)$;
|
fastcgi_split_path_info ^(.+\.php)(.*)$;
|
||||||
|
|
||||||
#### SOCKET
|
#### SOCKET
|
||||||
fastcgi_pass 172.16.238.11:9000;
|
fastcgi_pass php:9000;
|
||||||
|
|
||||||
fastcgi_index index.php;
|
fastcgi_index index.php;
|
||||||
fastcgi_intercept_errors on;
|
fastcgi_intercept_errors on;
|
||||||
|
@ -35,7 +35,7 @@ server {
|
|||||||
fastcgi_split_path_info ^(.+\.php)(.*)$;
|
fastcgi_split_path_info ^(.+\.php)(.*)$;
|
||||||
|
|
||||||
#### FPM Server
|
#### FPM Server
|
||||||
fastcgi_pass 172.16.238.11:9000;
|
fastcgi_pass php:9000;
|
||||||
|
|
||||||
fastcgi_index index.php;
|
fastcgi_index index.php;
|
||||||
fastcgi_intercept_errors on;
|
fastcgi_intercept_errors on;
|
||||||
|
@ -35,7 +35,7 @@ server {
|
|||||||
fastcgi_split_path_info ^(.+\.php)(.*)$;
|
fastcgi_split_path_info ^(.+\.php)(.*)$;
|
||||||
|
|
||||||
#### SOCKET
|
#### SOCKET
|
||||||
fastcgi_pass 172.16.238.11:9000;
|
fastcgi_pass php:9000;
|
||||||
|
|
||||||
fastcgi_index index.php;
|
fastcgi_index index.php;
|
||||||
fastcgi_intercept_errors on;
|
fastcgi_intercept_errors on;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user