跳至内容
菜单
此问题已终结
2 回复
7545 查看

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 ?

形象
丢弃
最佳答案

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; }
形象
丢弃
相关帖文 回复 查看 活动
3
8月 23
8006
1
3月 19
4537
1
10月 18
7855
1
11月 15
8949
1
1月 24
12569