csf admin via webmin thru nginx reverse proxy / failed redirects

Post Reply
rabbit19790611
Junior Member
Posts: 2
Joined: 03 Apr 2014, 17:30

csf admin via webmin thru nginx reverse proxy / failed redirects

Post by rabbit19790611 »

does anyone here have any tips to setting up nginx reverse proxy to properly and fully serve up all of csf's webmin control panel correctly? right now, it mostly works with examples available online for putting webmin behind nginx, but, when editing csf properties and attempting to save them, the proxy redirects fail. i'm left with having to make the csf config edits via command line and manually restarting csf / lfd from there. of course, if i browse webmin directly, the csf stuff all works fine.

my env:

Ubuntu 18.04.6 LTS
nginx/1.14.0
webmin 1.998 / authentic theme 19.98
csf 14.16

current nginx config:

location / {
proxy_pass http://127.0.0.1:10000;
proxy_redirect off;

#Proxy Settings
proxy_redirect off;
proxy_set_header Host $host:$server_port;
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;
proxy_connect_timeout 90;
proxy_send_timeout 90;
proxy_read_timeout 90;
proxy_buffer_size 128k;
proxy_buffers 32 32k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
}

}

thanks for any help you can offer me. have a good day.
Post Reply