Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

How to change the web url without proxying all requests needed

By
Wolfgang Taferner
on 9/12/13, 9:41 AM 2,282 views

I tried to put the OpenERP Server behind a proxy and change the URL for the Web Client to run under a subdirectory?

How to achieve that it is possible to request the proxy (i.e. https://www.proxy-domain.com/oerp/) and make it completely work?

Is there anywhere an easy config or central place to change the basepath of the webapplication?

I do not actually want to proxy all the root URLs like /web/..., /module_name/static/, etc. (which is called by dynamic components) to the related root path in the backend.

I actually do know the --proxy-mode flag but the problem are the wrong javascript requests as decribed in the sentence before which do not prefix with /oerp/ (i.e.: /oerp/web/static/...).

Any ideas, comments and experiences about this issue would be appreciated?

0
Rick Leir
On 9/12/13, 11:26 AM

There is a server option --proxy-mode that is intended to "Enable correct behavior when behind a reverse proxy". We used this mode so that the user invitation email would contain a correct link.

We used apache:

<VirtualHost 10.jjj.kk.hh:80>

    # Define server specific information.
    ServerAdmin hostmaster@aaaaaa.net
    ServerName openerp.aaaaaa.net

   # Configure reverse proxy.
    ProxyRequests Off
    ProxyPreserveHost Off

    <Location />
        ProxyPass http://10.nnn.mmm.kk:8069/
        ProxyPassReverse http://10.nnn.mmm.kk:8069/

        Order allow,deny
        Allow from all
    </Location>

 </VirtualHost>

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 9/12/13, 9:41 AM
Seen: 2282 times
Last updated: 3/16/15, 8:10 AM