documentation/content/administration/install
Julien Castiaux 7e8edb44b4 [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#6931

Closes: odoo/odoo#64643
X-original-commit: 8d1642984f
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
Signed-off-by: Julien Castiaux (juc) <juc@odoo.com>
2023-12-15 08:58:54 +00:00
..
cdn [IMP] Website: rewrite-keycdn-doc 2023-03-13 20:01:54 +01:00
cdn.rst [IMP] Website: rewrite-keycdn-doc 2023-03-13 20:01:54 +01:00
deploy.rst [FIX] deploy: nginx forwarded-host with tcp port 2023-12-15 08:58:54 +00:00
email_gateway.rst [FIX] *: RST cleanup 2023-02-15 09:35:49 +01:00
online.rst [REF] install: move intro to main install page and split by install type 2023-08-17 22:32:42 +02:00
packages.rst [IMP] install: clarify Windows is not recommended for prod 2023-09-13 00:33:11 +00:00
source.rst [REF] install: move intro to main install page and split by install type 2023-08-17 22:32:42 +02:00