Welcome! Log In Create A New Profile

Advanced

10485760 of shared memory zone "one" conflicts with already declared size 0

Posted by prashanth.a 
10485760 of shared memory zone "one" conflicts with already declared size 0
September 25, 2014 05:32PM
Dear Sir,

I'm getting the below error after enabling the reverse proxy on nginx

"the size 10485760 of shared memory zone "one" conflicts with already declared size 0 in /etc/nginx/nginx.conf:14"

#nginx config#

user www-data;
worker_processes 4;
pid /run/nginx.pid;

events {
worker_connections 768;
# multi_accept on;
}

http {

proxy_cache one;
proxy_temp_path /etc/nginx/proxy_temp;
proxy_cache_path /etc/nginx/proxy_cache levels=1:2 keys_zone=one:10m inactive=30m max_size=2g;
proxy_pass http://ci;
##
# Basic Settings
##

sendfile on;
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;

##
# Logging Settings
##

access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;

##
# Gzip Settings
##

gzip on;
gzip_disable "msie6";

# gzip_vary on;
# gzip_proxied any;
# gzip_comp_level 6;
# gzip_buffers 16 8k;
# gzip_http_version 1.1;
# gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;

##
# nginx-naxsi config
##
# Uncomment it if you installed nginx-naxsi
##

#include /etc/nginx/naxsi_core.rules;

##
# nginx-passenger config
##
# Uncomment it if you installed nginx-passenger
##

#passenger_root /usr;
#passenger_ruby /usr/bin/ruby;

##
# 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;
# }
#}
--------------------------------------------------------------------------------------------------------------------------------

#and site-available/ci.config#

#Node JS App on http port 3000

upstream ci{
server 127.0.0.1:3000;
}

#NGINX server instance

server {
listen 80;
server_name connectedimaging.com www.connectedimaging.com;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
server_name connectedimaging.com;
ssl_certificate /etc/nginx/ssl/certs/6c60c8641416.crt;
ssl_certificate_key /etc/nginx/ssl/certs/connectedimaging.com.key;
ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
location ~*
^.+\.(jpg|jpeg|woff|ttf|gif|png|ico|css|zip|tgz|gz|rar|bz2|pdf|txt|tar|wav|bmp|rtf|js|flv|swf|html|htm)$
{
root /home/telerad/connectedimaging/public;
expires 30d;
}
location / {
proxy_pass http://ci;
proxy_cache_key sfs$request_uri$scheme;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header Host $host;
proxy_cache one;
proxy_cache_valid 200 1d;
proxy_cache_use_stale error timeout invalid_header updating;
}
}
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 149
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready