Redirezionare un subfolder con Nginx Proxy Manager
Jump to navigation
Jump to search
- Se un applicativo proxato da NPM gira in una location, es
https://applicazione.example.com/guacamole -> http://1.2.3.4/guacamole
- E invece si vuole
https://applicazione.example.com -> http://1.2.3.4/guacamole
- Create a proxy host
- On the details tab, enter any ip address and port, it's required for the form but it won't actually be used, so it can be anything
- On the Custom Locations tab, in Custom locations create a location with `/` as the location path and for the Forward Hostname / IP enter `192.168.0.10/guacamole/` making sure you have that trailing slash, it's important.
- Save, and test.
Se non funziona, aggiungere invece in Advanced:
location = / {
return 301 /phpmyadmin/;
}