Redirezionare un subfolder con Nginx Proxy Manager: Difference between revisions
Jump to navigation
Jump to search
Created page with "* 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...." |
mNo edit summary |
||
| Line 9: | Line 9: | ||
* 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 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, create a location with `/` as the location path and for the | * 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''':<pre> | |||
location = / { | |||
return 301 /phpmyadmin/; | |||
} | |||
</pre> | |||
=Riferimenti= | =Riferimenti= | ||
*[https://github.com/NginxProxyManager/nginx-proxy-manager/issues/104 How do i forward to a folder? · Issue #104 · NginxProxyManager/nginx-proxy-manager · GitHub] | *[https://github.com/NginxProxyManager/nginx-proxy-manager/issues/104 How do i forward to a folder? · Issue #104 · NginxProxyManager/nginx-proxy-manager · GitHub] | ||
Latest revision as of 11:09, 24 January 2024
- 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/;
}