Skip to content
This repository has been archived by the owner on Jun 23, 2020. It is now read-only.

Reverse Proxy

mutschler edited this page Jun 8, 2016 · 1 revision

Example nginx config:

location /plexivity {
        proxy_set_header X-Script-Name /plexivity;
        proxy_set_header Host $http_host;
        proxy_set_header X-Forwarded-Host $proxy_add_x_forwarded_for;
        proxy_redirect off;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Scheme $scheme;
        proxy_connect_timeout 60;
        proxy_read_timeout 60;
        proxy_pass        http://localhost:8000;
}

Example apache config:

<Location /plexivity>
        RequestHeader set X-Script-Name /plexivity
        RequestHeader set X-Scheme https
        ProxyPass http://localhost:[port]
        ProxyPassReverse http://localhost:[port]
</Location>
Clone this wiki locally