Answer the question
In order to leave comments, you need to log in
What mistake did I make in setting up nginx?
Good afternoon,
I look and I can’t understand what mistake I made in nginx.conf.
error
[info] 21694#21694: Using 32768KiB of shared memory for push module in /etc/nginx/nginx.conf:69
user www-data;
worker_processes auto;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
# multi_accept on;
}
http {
##
# Basic Settings
##
# timer_resolution 100ms;
# worker_rlimit_nofile 8192;
# worker_priority -5; #Увеличитвваем приоритет
sendfile off;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
# server_tokens off;
server_names_hash_bucket_size 64;
# server_name_in_redirect off;
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;
##
# Gzip Settings
##
gzip on;
gzip_min_length 1100;
gzip_disable "MSIE [1-6]\.(?!.*SV1)";
gzip_vary on;
gzip_proxied any;
gzip_comp_level 4;
gzip_buffers 16 8k;
# gzip_http_version 1.1;
gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript;
##
# Virtual Host Configs
##
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}
#mail {
# # See sample authentication script at:
# # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
#
# # auth_http localhost/auth.php;
# # pop3_capabilities "TOP" "USER";
# # imap_capabilities "IMAP4rev1" "UIDPLUS";
#
# server {
# listen localhost:110;
# protocol pop3;
# proxy on;
# }
#
# server {
# listen localhost:143;
# protocol imap;
# proxy on;
# }
#}
server {
charset utf-8;
client_max_body_size 128M;
listen 80; ## listen for ipv4
#listen [::]:80 default_server ipv6only=on; ## listen for ipv6
server_name h.loc h;
root /home/max/work/hhh/frontend/web;
index index.php;
access_log /home/max/work/hhh/log/fhca_access.log;
error_log /home/max/work/hhh/log/fhca_error.log;
location / {
# Redirect everything that isn't a real file to index.php
try_files $uri $uri/ /index.php$is_args$args;
}
# uncomment to avoid processing of calls to non-existing static files by Yii
#location ~ \.(js|css|png|jpg|gif|swf|ico|pdf|mov|fla|zip|rar)$ {
# try_files $uri =404;
#}
#error_page 404 /404.html;
location ~ \.php$ {
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass 127.0.0.1:9000;
#fastcgi_pass unix:/var/run/php5-fpm.sock;
try_files $uri =404;
}
location ~ /\.(ht|svn|git) {
deny all;
}
}
2016/05/31 07:40:20 [info] 21694#21694: Using 32768KiB of shared memory for push module in /etc/nginx/nginx.conf:69
2016/05/31 07:51:40 [info] 1706#1706: Using 32768KiB of shared memory for push module in /etc/nginx/nginx.conf:69
2016/05/31 07:53:46 [info] 5330#5330: Using 32768KiB of shared memory for push module in /etc/nginx/nginx.conf:69
2016/05/31 07:55:18 [info] 6571#6571: Using 32768KiB of shared memory for push module in /etc/nginx/nginx.conf:69
2016/05/31 07:58:44 [info] 8893#8893: Using 32768KiB of shared memory for push module in /etc/nginx/nginx.conf:69
2016/05/31 07:58:44 [emerg] 8893#8893: open() "/home/max/work/xxx/log/fhca_access.log" failed (2: No such file or directory)
2016/05/31 07:59:38 [info] 9112#9112: Using 32768KiB of shared memory for push module in /etc/nginx/nginx.conf:69
2016/05/31 08:00:25 [alert] 9119#9119: *2 open socket #23 left in connection 4
2016/05/31 08:00:25 [alert] 9119#9119: *5 open socket #25 left in connection 6
2016/05/31 08:00:25 [alert] 9119#9119: *7 open socket #26 left in connection 7
2016/05/31 08:00:25 [alert] 9119#9119: *8 open socket #27 left in connection 8
2016/05/31 08:00:25 [alert] 9119#9119: aborting
2016/05/31 08:00:25 [info] 9223#9223: Using 32768KiB of shared memory for push module in /etc/nginx/nginx.conf:69
Answer the question
In order to leave comments, you need to log in
#fastcgi_pass 127.0.0.1:9000;
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question