Добрый день уважаемые коллеги! Столкнулся с бедой и никак не могу исправить данную проблему - 502 Bad Gateway (nginx)! И уже сутки никак не могу найти ошибку! :(
- Вот конфиг файла /etc/php/5.6/fpm/php-fpm.conf:
include=/etc/php/5.6/fpm/pool.d/*.conf
chroot = /var/www
chdir = /
pid = /var/run/php/php5.6-fpm.pid
error_log = /var/log/php5.6-fpm.log
- Вот конфиг файла /etc/php/5.6/fpm/pool.d/www.conf:
user = www-data
group = www-data
listen = /var/run/php/php5.6-fpm.sock
listen.owner = www-data
listen.group = www-data
- Вот конфиг файла /etc/nginx/nginx.conf:
user www-data;
worker_processes 2;
timer_resolution 100ms;
worker_rlimit_nofile 8192;
worker_priority -5;
error_log /var/log/nginx/error.log;
pid /run/nginx.pid;
events {
worker_connections 1024;
use epoll;
multi_accept on;
}
http {
##
# Basic Settings
##
sendfile on;
sendfile_max_chunk 128k;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 10;
keepalive_requests 100;
reset_timedout_connection on;
client_body_timeout 5;
client_header_timeout 5;
send_timeout 3;
client_header_buffer_size 2k;
large_client_header_buffers 2 2k;
client_body_buffer_size 256k;
access_log off;
types_hash_max_size 2048;
server_tokens off;
fastcgi_buffers 8 16k;
fastcgi_buffer_size 32k;
fastcgi_connect_timeout 300;
fastcgi_send_timeout 300;
fastcgi_read_timeout 300;
# server_names_hash_bucket_size 64;
# server_name_in_redirect off;
include /etc/nginx/sites-enabled/*;
include /etc/nginx/mime.types;
default_type application/octet-stream;
##
# SSL Settings
##
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
ssl_prefer_server_ciphers on;
##
# Logging Settings
##
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log crit;
charset utf-8;
##
# Gzip Settings
##
gzip on;
gzip_disable "msie6";
gzip_min_length 1100;
gzip_proxied any;
gzip_comp_level 4;
gzip_http_version 1.1;
gzip_vary on;
gzip_proxied expired no-cache no-store private auth;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
client_max_body_size 8M;
##
# Virtual Host Configs
##
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
server {
listen 80;
server_name service1.place.ru;
server_name_in_redirect off;
access_log /var/log/nginx/service.access_log;
error_log /var/log/nginx/service.error_log;
root /var/www/service1.place.ru;
fastcgi_intercept_errors on;
index index.php;
location ~ \.php$ {
try_files $uri =404;
include /etc/nginx/fastcgi_params;
fastcgi_index index.php;
fastcgi_pass unix:/var/run/php5.6-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
}
- Все эти папки пустые:
/etc/nginx/sites-available
/etc/nginx/sites-enabled
/etc/nginx/conf.d