تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
7492 أدوات العرض

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
أغسطس 23
7983
1
مارس 19
4493
1
أكتوبر 18
7791
1
نوفمبر 15
8918
1
يناير 24
12533