eustasy / Bubbly

BASH: Better SSL in Nginx in 10 minutes. Configuration files and setup scripts for Certbot.
MIT License
218 stars 21 forks source link

nginx: [emerg] zero size shared memory zone "servers" error #23

Closed bombolini closed 4 years ago

bombolini commented 5 years ago

Hello, $ nginx -v nginx version: nginx/1.15.12

$ nginx -V

built by gcc 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.4)
built with OpenSSL 1.0.2q  20 Nov 2018
TLS SNI support enabled
configure arguments: --add-module=../ngx_cache_purge --add-module=../nginx-rtmp-module --with-http_stub_status_module --with-http_ssl_module --sbin-path=/usr/sbin/nginx --lock-path=/var/run/nginx.lock --conf-path=/etc/nginx/nginx.conf --pid-path=/run/nginx.pid --with-pcre=../pcre-8.4* --with-zlib=../zlib-1.2.11 --with-openssl=../openssl-1.0.2q --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --user=nginx --group=nginx --with-http_auth_request_module --with-http_degradation_module --with-http_geoip_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_image_filter_module --with-http_mp4_module --with-http_perl_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_v2_module --with-stream_ssl_module --with-stream --with-threads --prefix=/etc/nginx

$ sudo nginx -t && sudo service nginx reload

nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: [emerg] zero size shared memory zone "servers"
nginx: configuration file /etc/nginx/nginx.conf test failed

PS: I do not see sites-enabled directory under /etc/nginx Could you please let me know what I missed?

Thank you Bombolini

bombolini commented 5 years ago

Hello, If I change last lines in nginx.conf as shown below, nginx -t says okay but not sure I believe that I am doing something wrong as I do not have sites-enabled...

      # limits
      limit_req_log_level warn;
      limit_req_zone $binary_remote_addr zone=reqlimit:10m rate=10r/m;
      include /etc/nginx/conf.d/*.conf;
      include /etc/nginx/sites-enabled/*;
}
lewisgoddard commented 5 years ago

What operating system are you running Nginx on? I expect /etc/nginx/sites-enabled/ to already exist.

Are you using the configuration copies from Steps 4 or 6 to run your site? Bubbly expects you to run configs that look like the files in https://github.com/eustasy/bubbly/tree/master/nginx-config/sites-available