Ir al contenido
Odoo Menú
  • Identificarse
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • TPV para tiendas
    • TPV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en directo
    • e-learning
    Cadena de suministro
    • Inventario
    • Fabricación
    • PLM
    • Compra
    • Mantenimiento
    • Calidad
    Recursos Humanos
    • Empleados
    • Reclutamiento
    • Ausencias
    • Evaluación
    • Referencias
    • Flota
    Marketing
    • Marketing social
    • Marketing por correo electrónico
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyecto
    • Partes de horas
    • Servicio de campo
    • Servicio de asistencia
    • Planificación
    • Citas
    Productividad
    • Conversaciones
    • Aprobaciones
    • IoT
    • VoIP
    • Conocimientos
    • WhatsApp
    Aplicaciones de terceros Studio de Odoo Plataforma de Odoo Cloud
  • Industrias
    Comercio al por menor
    • Librería
    • Tienda de ropa
    • Tienda de muebles
    • Tienda de ultramarinos
    • Ferretería
    • Juguetería
    Alimentación y hostelería
    • Bar y pub
    • Restaurante
    • Comida rápida
    • Casa de huéspedes
    • Distribuidor de bebidas
    • Hotel
    Inmueble
    • Agencia inmobiliaria
    • Estudio de arquitectura
    • Construcción
    • Gestión inmobiliaria
    • Jardinería
    • Asociación de propietarios
    Consultoría
    • Empresa contable
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Fabricación
    • Textil
    • Metal
    • Muebles
    • Alimentos
    • Cervecería
    • Regalos de empresas
    Salud y bienestar
    • Club deportivo
    • Óptica
    • Gimnasio
    • Terapeutas
    • Farmacia
    • Peluquería
    Oficios
    • Handyman
    • Hardware y soporte técnico
    • Sistemas de energía solar
    • Zapatero
    • Servicios de limpieza
    • Servicios de calefacción, ventilación y aire acondicionado
    Otros
    • Organización sin ánimo de lucro
    • Agencia de protección del medio ambiente
    • Alquiler de paneles publicitarios
    • Estudio fotográfico
    • Alquiler de bicicletas
    • Distribuidor de software
    Explorar todos los sectores
  • Comunidad
    Aprender
    • Tutoriales
    • Documentación
    • Certificaciones
    • Formación
    • Blog
    • Podcast
    Potenciar la educación
    • Programa de formación
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtener el software
    • Descargar
    • Comparar ediciones
    • Versiones
    Colaborar
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Convertirse en partner
    • Servicios para partners
    • Registrar tu empresa contable
    Obtener servicios
    • Encontrar un partner
    • Encontrar un asesor fiscal
    • Contacta con un experto
    • Servicios de implementación
    • Referencias de clientes
    • Ayuda
    • Actualizaciones
    GitHub YouTube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicitar una demostración
  • Precios
  • Ayuda

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Contabilidad
  • Inventario
  • PoS
  • Proyecto
  • MRP
All apps
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Ayuda

Howto use HTTPS and /odoo subfolder with Odoo 12 official Docker image

Suscribirse

Reciba una notificación cuando haya actividad en esta publicación

Se marcó esta pregunta
httpsapache2reverse_proxydockerodoo12
1 Responder
11058 Vistas
Avatar
Nico Gulden

Hello,

we are using the official Odoo 12 Docker image. The Docker host already has Apache2 and serves another web application. The host can be reached via a FQDN and IP address for example master.ucs.demo and 10.200.2.20. We'd like to reach the Odoo 12 webinterface via https://10.200.2.20/odoo and https://master.ucs.demo/odoo.

I'd like to know two things:

  1. What needs to be done with the Apache2 webserver proxy configuration or the Odoo Docker container so that requests to the above URLs with subfolder are correctly processed by Odoo?

  2. What needs to be done so that the reverse proxy can work as HTTPS endpoint and forward the requests to the Odoo container?

Currently we have setup a separate Apache2 Virtual Host with a dedicated different FQDN:

<VirtualHost *:443>
        ServerName odoo.master.ucs.demo
# we would *love* to get rid of this

RewriteEngine on
RewriteOptions Inherit
ProxyPreserveHost on
ProxyTimeout 600

RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME}
RequestHeader set "X-Forwarded-SSL" expr=%{HTTPS}

SSLEngine on
SSLProxyEngine on
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
SSLProxyCheckPeerExpire off
SSLCertificateFile /etc/univention/ssl/odoo.master.ucs.demo/cert.pem
SSLCertificateKeyFile /etc/univention/ssl/odoo.master.ucs.demo/private.key
SSLCACertificateFile /etc/univention/ssl/ucsCA/CAcert.pem

ProxyPass / http://127.0.0.1:8069/ retry=0
ProxyPassReverse / http://127.0.0.1:8069/
# we would *love* to have this:
#ProxyPass /odoo http://127.0.0.1:8069/odoo retry=0
#ProxyPassReverse /odoo http://127.0.0.1:8069/odoo

ProxyPassReverse https://odoo.master.ucs.demo/ /
# we would *love* to get rid of this
</VirtualHost>

This configuration provides access Odoo via https://odoo.master.ucs.demo/. This is a separate Apache2 Virtual Host configuration without a subfolder.

We'd like to use the already present Virtual Host configuration for ucs.master.demo and 10.200.2.20 and add a reverse proxy setting for /odoo. One problem we observed, initial HTTPS requests always redirected back to HTTP. For security reasons we cannot deploy it with the HTTP setup. And we also don't want to add another subdomain, because this makes evaluation more complicated due to additional DNS setups.

I'm looking forward to responses.

Best regards
Nico

1
Avatar
Descartar
Avatar
Jussi Lehto
Mejor respuesta

Dear Nico

Have you any updates regarding your issue? I have the same issue at https://ucs.gulfeo.net which also can be accessed with the username demo and password Testi123!

IMHO the de-facto standard proxy for Odoo deployments is nginx, instead of Apache. Still, in the last years, I have configured Apache for Odoo and deployed Odoo on Docker environments, thus I could investigate the issue. How may I join the team to fix this issue for you?

Best regards

Jussi

jussi@gulfeo.com

1
Avatar
Descartar
¿Le interesa esta conversación? ¡Participe en ella!

Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.

Inscribirse
Publicaciones relacionadas Respuestas Vistas Actividad
How to use HTTPS and /odoo subfolder with apache Resuelto
https apache2 odoo12
Avatar
1
sept 21
7150
Reverse Proxy sometime does not load in different browsers
apache2 reverse_proxy
Avatar
0
may 19
5194
How to define proxy rules for Odoo on Docker behind reverse proxy? Resuelto
https reverse_proxy
Avatar
1
feb 17
11026
Odoo 12: Link Redirects broken using Nginx Resuelto
nginx reverse_proxy odoo12
Avatar
Avatar
Avatar
Avatar
4
may 24
9979
Deploying odoo behind Amazon ELB Resuelto
https aws docker
Avatar
Avatar
Avatar
Avatar
4
jun 23
12684
Comunidad
  • Tutoriales
  • Documentación
  • Foro
Código abierto
  • Descargar
  • GitHub
  • Runbot
  • Traducciones
Servicios
  • Alojamiento Odoo.sh
  • Ayuda
  • Actualizar
  • Desarrollos personalizados
  • Educación
  • Encontrar un asesor fiscal
  • Encontrar un partner
  • Convertirse en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contacta con nosotros
  • Puestos de trabajo
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Información legal • Privacidad
  • Seguridad
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo es un conjunto de aplicaciones de código abierto que cubren todas las necesidades de tu empresa: CRM, comercio electrónico, contabilidad, inventario, punto de venta, gestión de proyectos, etc.

La propuesta única de valor de Odoo es ser muy fácil de usar y totalmente integrado.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now