Answer the question
In order to leave comments, you need to log in
Webmin proxying, in bitrix env nginx environment, how to dock?
I'm trying to make friends with the Bitrix environment with webmin. There is a server with centos 7.5 From scratch, I rolled the Bitrix environment there and raised the test Bitrix site. then installed webmin After all this, I'm poking around in the s1.conf config and in the webmin config.
What I did, Registered In /etc/webmin/miniserv.conf
ssl=0
syslog=1
ssl_redirect=0
webprefix=/webadmin
webprefixnoredir=1
referers=XX.XX.XX.XX
referers_none=0
Proxy for webmin
location /webadmin/ {
proxy_redirect http://XX.XX.XX.XX:10000/ https://XX.XX.XX.XX/webadmin/;
proxy_pass http://localhost:10000/;
proxy_set_header Host $host;
}
}
# Proxy for webmin
location /webadmin/ {
# Tell nginx that we want to proxy everything here to the local webmin server
# Last slash is important
proxy_pass http://127.0.0.1:10000/;
# Change the response Location: header to come from our proxy directory, not the server
# Fixes initial redirect after login
proxy_redirect http://$host:10000/ /webadmin/;
# Also fixes initial redirect after login
proxy_set_header Host $host;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question