You are on page 1of 1

FORM.IO — nginx reversed proxy under ‘subfolderʼ in order to host multiple node.

js 7/12/19, 12(39

Pardon the interruption.


Youʼve read 3 stories this month. Thereʼs a lot more
where that came from. Ready to make Medium yours?
@maxtsai

FORM.IO — nginx reversed proxy under ‘subfolderʼ in order to host multiple


node.js apps. i.e.

location /formio/ {

// rewrite to remove the subfolder


rewrite ^/formio/(.*)$ /$1 break;

proxy_pass http://127.0.0.1R3001;

proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection ‘upgradeʼ;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;

proxy_set_header X-Real-IP $remote_addr;


proxy_set_header HOST $http_host;
proxy_set_header X-NginX-Proxy true;

https://medium.com/@maxtsai/form-io-nginx-reversed-proxy-under-subfolder-in-order-to-host-multiple-node-js-27f97432d2d Page 1 of 1

You might also like