Discover Centmin Mod today
Register Now

nginx reverse proxy config

Discussion in 'Other Web Apps usage' started by ndha, Aug 18, 2017.

  1. ndha

    ndha Member

    54
    11
    8
    Sep 28, 2014
    Ratings:
    +24
    Local Time:
    10:58 PM
    Latest
    10
    Hi @eva2000
    i want to use nginx reverse proxy for additional ddos protection..
    so vps 1 had ddos protection, vps 2 original webserver (centmin)..
    i had below nginx config location for reverse proxy, is it enough??
    or i must add others config or change something??
    Code (Text):
    add_header X-Proxy-Cache $upstream_cache_status;
          location / {
                proxy_pass http://vps2IP/;
                proxy_redirect off;
                proxy_set_header Host $host;
                proxy_set_header X-Real-IP $remote_addr;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_max_temp_file_size 0;
                client_max_body_size 10m;
                client_body_buffer_size 128k;
                proxy_connect_timeout 90;
                proxy_send_timeout 90;
                proxy_read_timeout 90;
                proxy_buffer_size 4k;
                proxy_buffers 4 32k;
                proxy_busy_buffers_size 64k;
                proxy_temp_file_write_size 64k;
    
          }
    

    Thanks for your advice or other users later..
     
  2. eva2000

    eva2000 Administrator Staff Member

    29,747
    6,720
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,033
    Local Time:
    1:58 AM
    Nginx 1.13.x
    MariaDB 5.5
    Centmin Mod is provide as is, so short of scripted related bugs or issues, any further optimisation to the web stack components - nginx, php-fpm, mariadb mysql, csf firewall etc or web app specific configurations are left to the Centmin Mod user to deal with. So I do not provide any free support for such.

    However, Centmin Mod users are free to help each other out and ask questions or give answers on this community forum. My hopes are that this community forum evolves so that more veteran long time Centmin Mod users help new Centmin Mod users out :)

    Centmin Mod's Nginx has all the nginx modules it requires for you to configure nginx reverse proxy, nginx based load balancing and proxy caching (with exception of the shared file system you'd need i.e. NFS, GlusterFS and any mysql database cluster/replication). You just have to configure it yourself :)

    For nginx reverse proxy & load balancing read the documentation, tutorial and guides below