Skip to content

Serve Jingo pages from a directory behind a reverse proxy

Claudio Cicali edited this page Dec 28, 2015 · 1 revision

How to serve Jingo pages from a directory behind a reverse proxy

This is when you already have – let's say – an intranet website and you want the wiki pages served from Jingo to be part of that website served from a directory. For example something like https://myintranet.company.com/wiki.

This configuration involves again a reverse proxy and a simple rewrite rule. This one is the smallest working configuration:

http {
    server {
        listen 80;

        server_name jingo.dev;

        location / {
            # Your configuration for the existing website
        }

        location /wiki {
          rewrite ^/wiki(/.*)$ $1 break;
          proxy_pass http://localhost:6067/;
        }
    }
}

You also need to tell Jingo about this configuration. In its config file you need to set the application.proxyPath to the same value of the aforementioned location option in the nginx configuration (/wiki)

Once the option is set, you cannot use Jingo directly without passing through the other website.