Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2017-11-07, 22:58:23

Author Topic: Nginx error  (Read 1793 times)

0 Members and 1 Guest are viewing this topic.

Offline imperio

  • Valuable Member
  • *
  • Posts: 80
  • Karma: +0/-0
    • View Profile
Nginx error
« on: 2013-08-23, 04:21:42 »
Hello
I use module nginxproxy. When i activate this module httpd started successfully but nginx not started.

I see the error at startup nginx
Quote
Starting nginx: nginx: [alert] mmap(MAP_ANON|MAP_SHARED, 8388608) failed (28: No space left on device)

if I delete a row
Quote
limit_conn_zone $binary_remote_addr zone=addr:10m;
in to
~lxcenter.conf (/etc/nginx/conf.d)

and delete a row
Quote
limit_conn addr 25;
in to
proxy.conf (/home/nginx/conf/globals)

then nginx started successfully

how I can fix it
« Last Edit: 1970-01-01, 01:00:00 by Guest »
I like the KLOXO-MR

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Nginx error
« Reply #1 on: 2013-08-23, 04:54:16 »
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline imperio

  • Valuable Member
  • *
  • Posts: 80
  • Karma: +0/-0
    • View Profile
Re: Nginx error
« Reply #2 on: 2013-08-23, 05:22:10 »
Help me please
I don't understand this problem
I delete this rows

limit_conn_zone $binary_remote_addr zone=addr:10m;
limit_conn addr 25;

and nginx startup successfully
where the error

This is ~lxcenter.conf
Quote
   include /etc/nginx/mime.types;

    default_type application/octet-stream;

    log_format main '$remote_addr - $remote_user [$time_local] "$request" '
        '$status $body_bytes_sent "$http_referer" '
        '"$http_user_agent" "$http_x_forwarded_for"';

#   access_log /var/log/nginx/access.log main;

    error_log /var/log/nginx/error.log warn;
   
    ### MR - must be using nginx-special (including ngx_http_log_request_speed)
   ## just enough remove # below for enable; only request > 5000 miliseconds write to error.log
    #log_request_speed_filter on;
    #log_request_speed_filter_timeout 5000;

    gzip            on;
    gzip_static     on;
    gzip_min_length 1024;
    gzip_comp_level 4;
    gzip_proxied    any;

    gzip_types text/plain
           text/css
           application/x-javascript
           text/xml
           application/xml
           application/xml+rss
           text/javascript;

    keepalive_timeout 180;

    limit_conn_zone $binary_remote_addr zone=addr:10m;

    proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=pcache:8m max_size=1000m inactive=600m;
    proxy_temp_path /tmp/nginx 1 2;

    fastcgi_cache_path /var/cache/nginx levels=1:2 keys_zone=fcache:8m max_size=1000m inactive=600m;
    fastcgi_temp_path /tmp/nginx 1 2;

    include /home/nginx/conf/defaults/*.conf;
    include /home/nginx/conf/domains/*.conf;
    include /home/nginx/conf/webmails/*.conf;

This is proxy.conf
Quote
proxy_ignore_headers Expires Cache-Control;
    proxy_cache_use_stale error timeout invalid_header http_502;
    proxy_cache_bypass $cookie_session;
    proxy_no_cache $cookie_session;

    ## MR - increasing upload size to 64M (declare inside 'location /' not work
    client_max_body_size 64M;
    client_body_buffer_size 128k;
   
    proxy_connect_timeout 180s;
    proxy_send_timeout 180s;
    proxy_read_timeout 180s;
    #proxy_buffers 32 4k;
    proxy_buffers 8 128k;
    proxy_buffer_size 128k;

    ### MR -- change enable = @wp when using wordpress
    error_page 404 /404.html;

    location = /404.html {
        root '/usr/share/nginx/html';
    }

    error_page 500 502 503 504 /50x.html;

    location = /50x.html {
        root '/usr/share/nginx/html';
    }

    ### MR -- must be using nginx-special (including ngx_purge_cache)
    location ~ /purge(/.*) {
        ### MR -- just enough remove # below for enable
        #proxy_cache_purge pcache "$scheme://$host$1$request_method";
        allow 127.0.0.1;
        deny all;
    }

    location / {
     
limit_conn addr 25;

        ## MR - no need try_files because permalink handle by apache
        #try_files $uri $uri/ /index.php;

        proxy_pass http://127.0.0.1:30080/;

        proxy_redirect off;

        ## MR - change $host to $domain importance for access via ip on exclusive ip domain but add X-Host still with $host
        proxy_set_header Host $domain;
        proxy_set_header X-Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        #proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-For $remote_addr;
   
        proxy_pass_header Set-Cookie;

        proxy_headers_hash_max_size 512;

        ### MR -- just enough remove # below for enable cache
        #proxy_cache pcache;
        proxy_cache_valid 10m;
        proxy_cache_valid 404 1m;

        proxy_cache_key "$scheme://$host$request_uri";

        proxy_cache_use_stale error timeout invalid_header
                              http_500 http_502 http_504 http_404;

        open_file_cache max=1024 inactive=600s;
        open_file_cache_valid 2000s;
        open_file_cache_min_uses 1;
        open_file_cache_errors on;
    }

    ### MR -- Enable this if not using nginx cache and not for wordpress
#    location ~* ^.+.(jpe?g|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js|swf|avi|mp3)$ {
#        expires 2d;
#        access_log off;
#        root $rootdir;
#    }

    location ~ /.ht {
        deny all;
    }

    if (-f $request_filename) {
        break;
    }
 
    if (-d $request_filename) {
        break;
    }
« Last Edit: 1970-01-01, 01:00:00 by Guest »
I like the KLOXO-MR

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Nginx error
« Reply #3 on: 2013-08-23, 06:04:10 »
What about if try change 'limit_conn addr 25;' to 'limit_conn addr 1000;'?
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline imperio

  • Valuable Member
  • *
  • Posts: 80
  • Karma: +0/-0
    • View Profile
Re: Nginx error
« Reply #4 on: 2013-08-23, 15:10:53 »
I have changed
limit_conn_zone $binary_remote_addr zone=addr:10m;  to 2m
and nginx startup successfully

 :!: MRatWork Can you help me with encoding on file manager ?
i need the windows -1251
viewtopic.php?f=5&t=19314
« Last Edit: 1970-01-01, 01:00:00 by Guest »
I like the KLOXO-MR

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo
Click Here

Page created in 0.047 seconds with 16 queries.

web stats analysis
 
Mirror created by MasterkinG32.CoM