D
D
Denis2018-08-13 16:33:30
Nginx
Denis, 2018-08-13 16:33:30

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

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

Then I drove proxying into s1.conf,
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;
                        }
        }

Also 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
I get 404. Not found
What am I doing wrong?
When googling, I found these options that I used.
First
Second
Configs:
s1.conf
Nginx.conf
/etc/webmin/config
/etc/webmin/miniserv.conf
I've been struggling all day and I can't figure out how to dock, of course, the Bitrix environment is not very friendly with this.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Denis, 2018-08-27
@WolFman

The problem was solved by installing the cloudmin script. Got up.

Z
zevilz, 2018-08-23
@zevilz

Bitrix environment itself is buggy. It's easier to put webmin on a clean server and download the site.
PS And it's better not to use panels at all)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question