location PATHTOCHANGE/ { rewrite ^PATHTOCHANGE$ PATHTOCHANGE/ permanent; proxy_pass http://localhost:YUNOPORT/; proxy_set_header Host $host; proxy_buffering off; include conf.d/yunohost_panel.conf.inc; }