reverseproxy_ynh/doc/DISCLAIMER.md

12 lines
1 KiB
Markdown
Raw Permalink Normal View History

2023-01-08 14:33:31 +01:00
### Backend web path
2021-06-04 16:26:13 +02:00
2023-01-08 14:33:31 +01:00
The request is transmitted as-is to the backend server. This usually means that the backend service shoudl be aware of the web path used to access the service. For example, if using the application is installed to `example.com/proxy`, your backend application should produce absolute links starting with `example.com/proxy/` too.
2021-06-04 16:26:13 +02:00
2023-01-08 14:33:31 +01:00
To support relative URLs from the backend, accessing the application via `http(s)://example.com/proxy` will permanent redirect (302) to `http(s)://example.com/proxy/` (trailing slash). Otherwise, a relative link like `<link rel="stylesheet" href="style.css">` would try to load `http(s)://example.com/style.css` which would fail.
2021-06-04 16:26:13 +02:00
2023-01-08 14:33:31 +01:00
It is possible that your backend service does not support setting up a "base URL" (custom web path). In that case, you will have to install the application on a dedicated (sub)domain.
### Plaintext localhost backend
Plaintext HTTP backend is only allowed on localhost. For now, only 127.X.X.X is allowed. 10.X.X.X should also be supported.