Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
2 Respostas
7969 Visualizações

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
Cancelar
Melhor resposta

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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
3
ago. 23
8351
1
mar. 19
4956
1
out. 18
8181
1
nov. 15
9328
1
jan. 24
13016