Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
8196 Lượt xem

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? 

Ảnh đại diện
Huỷ bỏ

Hi,

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

Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

Hi Rudolf,

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 3 15
4756
1
thg 8 24
1085
4
thg 7 20
4323
1
thg 3 15
5901
5
thg 8 15
55443