Welcome to Centmin Mod Community
Become a Member

nginx reverse proxy config

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

  1. ndha

    ndha Member

    Sep 28, 2014
    Local Time:
    3:26 PM
    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

    May 24, 2014
    Brisbane, Australia
    Local Time:
    6:26 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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
  3. aditbaco

    aditbaco New Member

    Aug 29, 2021
    Local Time:
    3:26 PM
    Do you manage to get the https working? I'm also running this same configurations.