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

Hi, 

i have a Debian Server installed with Odoo 10 behind a Apache 2.4 Proxy. 

So far everything works fine except the Database Manager:

  • When i try to restore a Database Backup i get a 502 Bad Gateway Error after the Upload 

  • After deleting i get a message 500 Internal Server Error

here is my host config: 

<VirtualHost erp.domain.com:80>

ServerName erp.domain.com

ServerAlias erp.domain.com

Redirect / https://erp.domain.com/

</VirtualHost>

<VirtualHost erp.domain.com:443>

ServerName erp.domain.com

ServerAlias erp.domain.com

LogLevel warn ErrorLog /var/log/apache2/erp.domain.com.error.log CustomLog /var/log/apache2/erp.domain.com.access.log combined

     SSLEngine on SSLProxyEngine on SSLCertificateFile /etc/letsencrypt/live/erp.domain.com/fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/erp.domain.com/privkey.pem Include /etc/letsencrypt/options-ssl-apache.conf

     ProxyRequests Off

ProxyPreserveHost On 

ProxyPass /longpolling/ http://localhost:8072/longpolling/ retry=0

ProxyPassReverse /longpolling/ http://localhost:8072/longpolling/ retry=0

ProxyPass / http://localhost:8069/ retry=0

ProxyPassReverse / http://localhost:8069/ retry=0

<Location "/web/database/manager" > Order deny,allow Allow from all Allow from 127.0.0.0/255.0.0.0 ::1/128 </Location>

 <Location "/website/info" > Order deny,allow Deny from all Allow from 127.0.0.0/255.0.0.0 ::1/128 </Location>

</VirtualHost>

Can someone help me? 

الصورة الرمزية
إهمال

Hi,

Did you ever find a solution to this? Experiencing the same problem with Nginx running on Ubuntu 20.04.

أفضل إجابة

Hi,

The 502 error could be because of the file size upload limit present in the nginx config. You can check the setting of size in the following link 

link 

Check it out, hope it helps.

Regards,

Divyansh

الصورة الرمزية
إهمال
الكاتب أفضل إجابة

Hi Rudolf,

thanks for your reply. I did remove the line, but no luck. So thats not the problem. 

الصورة الرمزية
إهمال
أفضل إجابة

Hello Martin,

I'm not absolutely sure about this, but looking at the near the end your Location tag allowing "localhost" on 127.0.0.0 in your config I would assume you mean 127.0.0.1 instead? Otherwise the entries look fairly clean and normal...

best regands

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
مارس 15
4665
1
أغسطس 24
1012
4
يوليو 20
4242
1
مارس 15
5854
5
أغسطس 15
55291