Skip to content

Instantly share code, notes, and snippets.

@GamePlayer-8
Created July 19, 2023 07:36
Show Gist options
  • Save GamePlayer-8/99000ceb7d20ca898712a28d092f2d7f to your computer and use it in GitHub Desktop.
Save GamePlayer-8/99000ceb7d20ca898712a28d092f2d7f to your computer and use it in GitHub Desktop.
nginx_webmin.conf
set $webminip <WEBMIN IP>;
set $webminport <WEBMIN PORT>;
set $netdataport <NETDATA PORT>; # optional
location /webmin/ {
proxy_redirect https://$host:$webminport/ https://$host/webmin/;
proxy_pass https://$webminip:$webminport/;
proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Accept-Encoding "";
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_http_version 1.1;
proxy_pass_request_headers on;
sub_filter :$netdataport \/netdata;
sub_filter_once off;
sub_filter_last_modified on;
sub_filter_types *;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment