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

We don't use ssl connection, and connect through 80 port using apache. In 6th version everything worked well, but after upgrading it to 7th following error sometimes appear.

    XmlHttpRequestError Proxy Error

    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
 <html><head>
 <title>502 Proxy Error</title>
 </head><body>
 <h1>Proxy Error</h1>
 <p>The proxy server received an invalid
 response from an upstream server.<br /> 
The proxy server could not handle the request <em><a href="/web/dataset/call_kw">POST /web/dataset/call_kw</a></em>.<p> 
Reason: <strong>Error reading from remote server</strong></p></p> 
<hr>
 <address>Apache/2.2.22 (Ubuntu) Server at mydomain.com Port 80</address>
 </body></html>

apache config:

<Virtualhost *:80>
    #  DocumentRoot "/home/monoserp/openerp-server/openerp"
      ServerName mydomain.com
      ServerAdmin aldar@gmail.com
    #  DirectoryIndex index.html index.php
      ProxyRequests On
      ProxyPreserveHost On
      ProxyVia full

      ProxyTimeout 18000


       <Directory />
                    Options FollowSymLinks
                    AllowOverride None
                    Order allow,deny
                    allow from all
       </Directory>


      <proxy>
        Order deny,allow
        Allow from all
      </proxy>
      SetEnv proxy-nokeepalive 1
      ProxyPass        / 127.0.0.1:8069/ connectiontimeout=500 timeout=18000
      ProxyPassReverse /  127.0.0.1:8069/
    </Virtualhost>
Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Solved! It's a bit complicated but it works

See here 

http://www.zeroincombenze.org/wiki/Nascondere_accesso_porta_8069

 

Ả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
11437
0
thg 12 24
9566
3
thg 9 24
21824
5
thg 12 24
53133
4
thg 7 24
10647