documentation/content
Julien Castiaux 896820000b [FIX] deploy: nginx forwarded-host with tcp port
Install nginx using the nginx configuration found in the documentation
and changes the `listen` port to 8080. Start Odoo in `--proxy-mode`.

    listen 8080;
    server_name mycompany.odoo.com;
    proxy_set_header X-Forwarded-Host $host;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_set_header X-Real-IP $remote_addr;
    location / {
            proxy_pass http://127.0.0.1:8069;
    }

Inside your browser, access "http://mycompany.odoo.com:8080" you are
wrongly redirected to "http://mycompany.odoo.com:80".

Odoo uses the `X-Forwarded-Host` http header value to generate new URls,
in this configuration `$host` only contains the domain (=hostname using
the urllib terminology) instead of the domain+port (=netloc). The
variable that contains both the domain and the port is actually
`$http_host`.

closes odoo/documentation#6941

Closes: odoo/odoo#64643
X-original-commit: 09c42c5896
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
Signed-off-by: Julien Castiaux (juc) <juc@odoo.com>
2023-12-18 17:11:39 +00:00
..
administration [FIX] deploy: nginx forwarded-host with tcp port 2023-12-18 17:11:39 +00:00
applications [IMP] sales: updated entire invoicing based on milestones doc 2023-12-17 19:03:51 +00:00
contributing [IMP] Contributing: typo seealso admonition 2023-11-27 17:26:55 +00:00
developer [IMP] developer/reference/cli: --proxy-mode 2023-12-03 08:27:03 +00:00
legal [FIX] legal: broken links to the support page 2023-09-26 06:02:51 +00:00
administration.rst [IMP] upgrade: create new "upgrade" section in "install and maintain" 2021-10-15 11:45:07 +00:00
applications.rst [ADD] attendances: hr and attendances categories + hardware page 2023-03-29 19:20:11 +02:00
contributing.rst [IMP] contributing: list the ways to contribute to Odoo 2022-12-08 15:51:24 +01:00
developer.rst [MOV] developer/cli: move "Command-line interface (CLI)" to the reference dir 2023-02-23 16:09:00 +01:00
index.rst [IMP] *: introduce tables of contents in top-level app pages 2021-07-07 14:56:38 +02:00
last_build.rst [FIX] *: RST cleanup 2023-02-15 16:03:06 +01:00
legal.rst [IMP] documentation: legal page design 2022-12-08 12:31:09 +01:00