OMV web gui behind Nginx Reverse Proxy

  • Hey there,


    has anybody been successful publishing the OMV webgui with an reverse proxy? This is my configuration:


    Code
    location /omv/ {
    rewrite ^/omv(/.*)$ $1 break;
    proxy_pass http://myomvserver:80;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto https;
    proxy_redirect off;
    }


    As you can see, I want to publish the web gui from a folder on the reverse proxy. I can see the login page, but the login does not work. Any working configuration that you can share?


    Cheers,

    Klaus

  • here mine.



    server {

    listen 443 ssl;

    #add_header Strict-Transport-Security "max-age=15552000" always;

    add_header Referrer-Policy no-referrer;

    add_header X-Robots-Tag "noindex, nofollow, nosnippet, noarchive";

    #add_header X-Frame-Options SAMEORIGIN always;

    #add_header X-Content-Type-Options nosniff always;

    #add_header X-XSS-Protection "1; mode=block" always;

    root /config/www;

    index index.html index.htm index.php;

    server_name Putyourown.duckdns.org;

    include /config/nginx/ssl.conf;

    client_max_body_size 0;

    location / {

    # auth_basic "Restricted";

    # auth_basic_user_file /config/nginx/.htpasswd;

    include /config/nginx/proxy.conf;

    proxy_pass http://192.168.2.30:80;

    }

    }

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!