documentation/content/administration/install
Julien Castiaux 8d1642984f [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#6885

Closes: odoo/odoo#64643
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2023-12-14 13:45:06 +00:00
..
cdn [IMP] Website: rewrite-keycdn-doc 2023-03-13 21:44:52 +01:00
cdn.rst [IMP] Website: rewrite-keycdn-doc 2023-03-13 21:44:52 +01:00
deploy.rst [FIX] deploy: nginx forwarded-host with tcp port 2023-12-14 13:45:06 +00:00
email_gateway.rst [FIX] *: RST cleanup 2023-02-14 14:27:44 +01:00
online.rst [REF] install: move intro to main install page and split by install type 2023-08-17 20:39:02 +02:00
packages.rst [IMP] install: clarify Windows is not recommended for prod 2023-09-13 00:33:25 +00:00
source.rst [REF] install: move intro to main install page and split by install type 2023-08-17 20:39:02 +02:00