Ir al contenido
  • +31 653-919-302
Cafayate.Net
  • 0
  • 0
  • Inicia sesión
  • Nederlands English (US) Español (AR)
  • Contáctanos
  • Inicio
  • Blog
  • Empleos
  • Contáctanos
Cafayate.Net
  • 0
  • 0
    • Inicio
    • Blog
    • Empleos
    • Contáctanos
  • +31 653-919-302
  • Nederlands English (US) Español (AR)
  • Inicia sesión
  • Contáctanos

Nginx – Odoo – VPS – Ubuntu

  • Todos los blogs
  • Tech Blog
  • Nginx – Odoo – VPS – Ubuntu
  • 5 de marzo de 2021 por
    Administrator
    location /odoo/ {
        rewrite ^/odoo(/.*)$ $1 break;
        proxy_pass  http://localhost:8069/;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto https;
        proxy_redirect    off;
    }
    
    # This allows for someone who may have bookmarked the url with the 8069 port and redirects them to https automatically
    #server {
    # listen 45.32.238.8:8069;
    # server_name boostthis.nl;
    
    # add_header Strict-Transport-Security max-age=2592000;
    # rewrite ^/.*$ https://$host$request_uri? permanent;
    # }
    
    
    # This allows for someone to go to http and get redirected to https automatically
    server {
     listen 45.32.238.8:80;
     server_name boostthis.nl;
    
     add_header Strict-Transport-Security max-age=2592000;
     rewrite ^/.*$ https://$host$request_uri? permanent;
    }
    # This allows for someone who may have bookmarked the url with the 8069 port and redirects them to https automatically
    server {
     listen 45.32.238.8:8069;
     server_name boostthis.nl;
    
     add_header Strict-Transport-Security max-age=2592000;
     rewrite ^/.*$ https://$host$request_uri? permanent;
    }
    
    
    
     access_log /var/log/virtualmin/boostthis.nl_access_log;
     error_log /var/log/virtualmin/boostthis.nl_error_log;
    
    
    
    
    

    External Links

    https://www.digitalocean.com/community/questions/make-odoo-run-on-port-80-with-nginx

    https://gist.github.com/joshuajan/8512fc37322fa79967f8

    https://gist.github.com/anonymous/e6962453b54b41d7040f

     

     

     

     

    en Tech Blog
    Remove Powered by Odoo from Website footer

    Diseñado para empresas

    Somos un equipo de personas apasionadas cuyo objetivo es mejorar la vida de todos a través de productos revolucionarios. Creamos grandes productos para resolver sus problemas empresariales. Nuestros productos están diseñados para pequeñas y medianas empresas dispuestas a optimizar su rendimiento.

    Contáctenos

    Plantexel
    Pedernera
    Salta Capital 
    Argenina

    • +31 653-919-302
    • [email protected]
    Síganos
    Copyright © Plantexel
    Nederlands | English (US) | Español (AR)