Comment 4 for bug 522135

Revision history for this message
Xavier (Open ERP) (xmo-deactivatedaccount) wrote :

Finally got around to testing it, I am unable to reproduce the issue using 5.0.12.

I'm using a machine A and a VM B, A sees B as demo and B sees A as srv1 (via /etc/hosts files), the web client runs on A with the configuration

    [global]
    server.socket_host = "0.0.0.0"
    server.socket_port = 8080
    server.thread_pool = 10
    server.environment = "development"
    server.profile_on = False
    server.profile_dir = "profile"

    tools.proxy.on = True
    #tools.proxy.base = '''

    #log.access_file = "/var/log/openerp-web/access.log"
    #log.error_file = "/var/log/openerp-web/error.log"

    [openerp]
    host = 'localhost'
    port = '8070'
    protocol = 'socket'

    [openerp-web]
    dblist.filter = 'EXACT'
    dbbutton.visible = True
    company.url = ''
    child.listgrid.limit = 5
    child.listgrid.min_rows = 5

Apache runs on B with the configuration

    ProxyRequest On
    RewriteEngine On

    RewriteCond %{HTTP_HOST} ^demo$
    RewriteRule ^/(.*)$ http://srv1:8080/$1 [P,L]

    <Proxy http://srv1:8080/*>
      Order deny,allow
      Allow from all
    </Proxy>

Browser is launched from A and pointed to http://demo/, Apache logs on B (using RewriteLogLevel 9) show that the request goes through B, is matched, rewritten and send to the proxy. I do not get the error you demonstrate here (though I do get a slightly different issue that after edition the form redirections seem to setup the domain anew, and my browser gets sent to srv1:8080 instead of demo, which yields a host not found)