Ir al contenido
Menú
Se marcó esta pregunta
3 Respuestas
8046 Vistas

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
Descartar

Hi,

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

Mejor respuesta

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
Descartar
Autor Mejor respuesta

Hi Rudolf,

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

Avatar
Descartar
Mejor respuesta

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
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
mar 15
4586
1
ago 24
922
4
jul 20
4187
1
mar 15
5759
5
ago 15
55205