$server_name w nazwach plików logów magicznie nie działa, mimo, że działa w root, fastcgi_pass...

master
Michał 'rysiek' Woźniak 2015-01-05 01:57:13 +01:00
parent 542fa0f707
commit 677a446ae0
3 changed files with 12 additions and 12 deletions

View File

@ -6,9 +6,9 @@ server {
listen 80;
server_name rest;
root /opt/php/$server_name;
access_log /var/log/nginx/$server_name-access.log;
error_log /var/log/nginx/$server_name-error.log;
root /opt/php/rest;
access_log /var/log/nginx/rest-access.log;
error_log /var/log/nginx/rest-error.log;
location / {
index index.html index.htm index.php;
@ -19,7 +19,7 @@ server {
location ~ \.php$ {
try_files $uri =404;
proxy_read_timeout 1200;
fastcgi_pass unix:/var/run/php-fpm/$server_name-php5-fpm.sock;
fastcgi_pass unix:/var/run/php-fpm/rest-php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;

View File

@ -6,9 +6,9 @@ server {
listen 80;
server_name pgadmin;
root /opt/php/$server_name;
access_log /var/log/nginx/$server_name-access.log;
error_log /var/log/nginx/$server_name-error.log;
root /opt/php/pgadmin;
access_log /var/log/nginx/pgadmin-access.log;
error_log /var/log/nginx/pgadmin-error.log;
location / {
index index.html index.htm index.php;
@ -19,7 +19,7 @@ server {
location ~ \.php$ {
try_files $uri =404;
proxy_read_timeout 1200;
fastcgi_pass unix:/var/run/php-fpm/$server_name-php5-fpm.sock;
fastcgi_pass unix:/var/run/php-fpm/pgadmin-php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;

View File

@ -6,9 +6,9 @@ server {
listen 80;
server_name ldapadmin;
root /opt/php/$server_name;
access_log /var/log/nginx/$server_name-access.log;
error_log /var/log/nginx/$server_name-error.log;
root /opt/php/ldapadmin;
access_log /var/log/nginx/ldapadmin-access.log;
error_log /var/log/nginx/ldapadmin-error.log;
location / {
index index.html index.htm index.php;
@ -19,7 +19,7 @@ server {
location ~ \.php$ {
try_files $uri =404;
proxy_read_timeout 1200;
fastcgi_pass unix:/var/run/php-fpm/$server_name-php5-fpm.sock;
fastcgi_pass unix:/var/run/php-fpm/ldapadmin-php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;