Se rendre au contenu
Menu
Cette question a été signalée
3 Réponses
8052 Vues

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
Ignorer

Hi,

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

Meilleure réponse

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
Ignorer
Auteur Meilleure réponse

Hi Rudolf,

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

Avatar
Ignorer
Meilleure réponse

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
Ignorer
Publications associées Réponses Vues Activité
1
mars 15
4601
1
août 24
935
4
juil. 20
4197
1
mars 15
5772
5
août 15
55216