Skip to content

Instantly share code, notes, and snippets.

@kanibaspinar
Created September 29, 2016 13:44
Show Gist options
  • Save kanibaspinar/70afe42ffd6d3f5ca14794406ec169f0 to your computer and use it in GitHub Desktop.
Save kanibaspinar/70afe42ffd6d3f5ca14794406ec169f0 to your computer and use it in GitHub Desktop.
Cpanel Services Stable With Nginx
#Cpanel Servislerinin rahat calısması için#
location ~* ^/(controlpanel|cpanel|kpanel|securecontrolpanel|securecpanel|securewhm|webmail|whm|bandwidth|img-sys|java-sys|mailman/archives|pipermail|sys_cpanel|cgi-sys|mailman) {
proxy_pass http://server-ip:9999;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
#KBSP Cpanel Servislerinin rahat çalışması için#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment