Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
7484 Vistas

Could someone light me up!!! I'm filtering my subdomain with --db-filter = ^%d and its working quite well when I'm using:

standard http wathever.domain.com:8069 the destination match my database with the subdomain.

But with SSL https wathever.domain.com it redirect me to the database manager Why ?

Avatar
Descartar
Mejor respuesta

I have solved this by using proxy mode configuration by creating separate subdomain server config block:


#### AFTER MAIN CONFIGURATION SERVER {} BLOCK ADD THIS IN THE FILE
server {
     listen [::]:443 ssl http2;
     listen 443 ssl http2;

     server_name subdomain.domain.com;

     ssl_certificate /etc/letsencrypt/live/subdomain.domain.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/subdomain.domain.com/privkey.pem;
access_log /var/log/nginx/subdomain_odoo_access.log; error_log /var/log/nginx/subdomain_odoo_error.log; proxy_read_timeout 720s; proxy_connect_timeout 720s; proxy_send_timeout 720s; 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; # Redirect longpoll requests to odoo longpolling port location /longpolling { proxy_pass http://odoochatserver; } location / { proxy_redirect off; proxy_pass http://odooserver; } location ~* /web/static/ { proxy_cache_valid 200 90m; proxy_buffering on; expires 864000; proxy_pass http://odooserver; } gzip_types text/css text/less text/plain text/xml application/xml application/json application/javascript; gzip on; }
Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
3
ago 23
7983
1
mar 19
4490
1
oct 18
7791
1
nov 15
8915
1
ene 24
12532