REL-0.9 Use hostnames instead of IP addresses

This commit is contained in:
cytopia 2017-05-06 14:17:50 +02:00
parent 3f7fe50113
commit 90a65d8090
No known key found for this signature in database
GPG Key ID: 6D56EDB8695128A2
6 changed files with 7 additions and 7 deletions

View File

@ -3,4 +3,4 @@
AddType application/x-httpd-fastphp5 .php
Action application/x-httpd-fastphp5 /php5-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

View File

@ -6,12 +6,12 @@
# If you have enough idle workers, this would only improve the performance marginally
#
# 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$">
Require all granted
# Pick one of the following approaches
# 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
#SetHandler "proxy:unix:/path/to/app.sock|fcgi://localhost/:9000"
</FilesMatch>

View File

@ -35,7 +35,7 @@ server {
fastcgi_split_path_info ^(.+\.php)(.*)$;
#### FPM Server
fastcgi_pass 172.16.238.11:9000;
fastcgi_pass php:9000;
fastcgi_index index.php;
fastcgi_intercept_errors on;

View File

@ -35,7 +35,7 @@ server {
fastcgi_split_path_info ^(.+\.php)(.*)$;
#### SOCKET
fastcgi_pass 172.16.238.11:9000;
fastcgi_pass php:9000;
fastcgi_index index.php;
fastcgi_intercept_errors on;

View File

@ -35,7 +35,7 @@ server {
fastcgi_split_path_info ^(.+\.php)(.*)$;
#### FPM Server
fastcgi_pass 172.16.238.11:9000;
fastcgi_pass php:9000;
fastcgi_index index.php;
fastcgi_intercept_errors on;

View File

@ -35,7 +35,7 @@ server {
fastcgi_split_path_info ^(.+\.php)(.*)$;
#### SOCKET
fastcgi_pass 172.16.238.11:9000;
fastcgi_pass php:9000;
fastcgi_index index.php;
fastcgi_intercept_errors on;