Skip to content

install mosparo under subpath #216

Answered by zepich
davd-edia asked this question in Q&A
Apr 5, 2024 · 1 comments · 10 replies
Discussion options

You must be logged in to vote

Hi @davd-edia

I found a solution for your setup. I tested it with nginx as a reverse proxy, but I think it should also work with IIS.

  1. Set the X-Forwarded-Prefix header in the reverse proxy configuration. As mentioned, I've used nginx for the reverse proxy, and my reverse proxy config looks like this:
server {
    listen 443 ssl;

    server_name example.com;

    index index.php;

    location /mosparo/ {
        rewrite /mosparo/(.*) /$1 break;
        proxy_set_header Host $http_host;
        proxy_set_header X-Forwarded-Prefix /mosparo;
        proxy_pass http://127.0.0.1:8080/;
    }

    ssl_certificate ...;
    ssl_certificate_key ...;
}

Important are the two lines rewrite /mospa…

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@zepich
Comment options

@davd-edia
Comment options

@zepich
Comment options

@zepich
Comment options

Answer selected by davd-edia
@davd-edia
Comment options

@zepich
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants