Proxying webmin, bitrix env the environment to nginx, how to dock?

0 like 0 dislike
4 views
Trying to make friends with Bitrix environment with webmin. You have a server with centos 7.5 With zero freewheeling there Bitrix environment raised test Bitrix site. then installed webmin After all this poking around in the config file s1.conf and the config in webmin.
What I did is Ordered In the /etc/webmin/miniserv.conf
ssl=0 syslog=1 ssl_redirect=0

In /etc/webmin/config introduced
webprefix=/webadmin webprefixnoredir=1 referers=XX.XX.XX.XX referers_none=0

Then in s1.conf hammered proxying,
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; } }

As another option:
# 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;


When opening domain or ip:/webadmin
Get 404. Not found
What am I doing wrong?
When hoglike found these options that I used.
First
Second

Configs:
s1.conf
Nginx.conf
/etc/webmin/config
/etc/webmin/miniserv.conf
The whole day I suffer I can not understand how to dock, of course Bitrix environment is not very friendly with it.
by | 4 views

2 Answers

0 like 0 dislike
The problem was solved by the installation script cloudmin. Stood up.
by
0 like 0 dislike
Bitrix environment itself buggy. Easier to put webmin on a clean server and roll website.

PS And it is better not to use sockets)
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
28,760 users