reverseproxy_ynh/doc/DISCLAIMER.md

19 lines
1 KiB
Markdown
Raw Normal View History

2021-06-04 16:26:13 +02:00
## Redirect type
### Visible redirect
The client will be redirected to another url or external website
2021-06-04 16:26:13 +02:00
- `your-domain.com -> another-domain.net`
- `your-domain.com/foo -> another-domain.net/bar`
2021-06-04 16:26:13 +02:00
### Invisible redirect (a.k.a "reverse-proxy")
2021-06-04 16:26:13 +02:00
Visitor's address bar will remain the same. Typically used to integrate into YunoHost a manually-installed app into the portal.
2021-06-04 16:26:13 +02:00
- `you-domain.com/foo -> http://172.0.0.1:8080/app`
2021-06-04 16:26:13 +02:00
**IMPORTANT:** you may have to further tweak the `redirect.conf` in the nginx configuration, depending on your needs!
2021-06-04 16:26:13 +02:00
**IMPORTANT:** Many apps do not support being redirected to a different path due to relative links! This means that some apps being hosted for example on http://127.0.0.1:5050/app/ MUST be redirected to http://domain.tld/app/ and NOT http://domain.tld/someotherapp/. For example : an Odoo Docker container runs on http://127.0.0.1:8069/. You will not be able to redirect it to http://domain.tld/odoo/ ! You have to redirect it to the root, so for example http://odoo.domain.tld/