Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
3 Replies
8083 Tampilan

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? 

Avatar
Buang

Hi,

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

Jawaban Terbai

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

Avatar
Buang
Penulis Jawaban Terbai

Hi Rudolf,

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

Avatar
Buang
Jawaban Terbai

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

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
1
Mar 15
4635
1
Agu 24
987
4
Jul 20
4219
1
Mar 15
5792
5
Agu 15
55252