Skip to Content
Menu
This question has been flagged
2 Replies
9220 Views

Hello All,

Fairly new to openerp and just getting to grips with it.

With openerp installed in a sub folder, accessible from the root URL;

www.thedomain.ext

and nginx installed, it requires passing of port 8069 to allow client access.

If a location for 8081 is already specified in the nginx conf file I believe you can only add a second port with a different location path.

It would appear that the best way to do this would be to move openerp to a sub domain ?

If not, is there a better way ?

If so, what modifications would be required to ensure openerp runs from a sub domain correctly.

Thanks,

Nic

Avatar
Discard
Author Best Answer

Oops, just realised my error. I need to ask nginx listen to the other port for openerp connections and pass them accordingly!!

UPDATE: Nope, that will just cause the binding of openerp to fail.

Hoping for some sage advice.

Avatar
Discard
Best Answer

You have to set up a reverse proxy.

  • Go to your Nginx nginx.conf file.
  • inside http add:

    server {
        listen [DESIRED PORT];
        server_name www.thedomain.ext;
        access_log [NGINX ACCESS LOG FILE LOCATION];
        error_log [NGINX ERROR LOG FILE LOCATION];
        location / {
            proxy_pass http://127.0.0.1:[OPENERP PORT];
        }
    }
    

Note: Check if Apache is using port 80, if it is, use another port.

Avatar
Discard
Author

Thats what I had Karim. I'f I use listen 80 with proxy_pass 8069 client is not connecting. If I listen port 8069 it stops the server from binding. Was working prior to nginx install. Unless re-installing apache would break something (other than needing to reinstall nginx) ?

Did you check your firewall settings? Did you restart Nginx when you set up the reverse proxy?

Also are you sure Apache is not already using port 80, did you try with another port?

Author

Every change I made to Nginx I restarted Nginx to ensure the new conf file were picked up again. Err, yes apache is using port 80 so what port should I be listening on as this domain serves multiple purposes. It servers content on port 80 (via apache) and should / was providing openerp server via 8069. Then I installed nginx. What am I missing ?

Simply use another port, for instance 8070 because 80 is already used by Apache.

Author

Do you mean in the nginx conf file Karim ? i.e. listen 8070;

Indeed Nic, also make sure you allow that port through the firewall.

Author

OK will do.

Author

Nope, didn't work for me Karim. Server sits there waiting for connection and client fails to connect. I'm going to remove nginx and see if easyapache broke the openerp install. Thank you for your advice.

Author

Any idea if easyapache would break anything in openerp (I have to reinstall nginx if I run it) ?

Author

Does /etc/httpd/conf/httpd.conf get modified by openerp ?

I am not sure, just one question, are you able to access your OpenERP server through the 8069 port?

Author

OK, after removing nginx it looks as if the problem remains so easyapache must have modified some files that openerp changed. Can't access openerp through anyport.

OpenERP doesn't modify other software's configuration files. I think you might be having a firewall issue.

Author

I'm using the web client so I don't think its a firewall issue (it worked before and i've remove nginx for now) ? So when installing on a linux server there are no changes to other .conf or similar files that could be overwritten by something like easyapache ?

Author

Finally figured it out and how silly of me. I added a bunch of domains to Incapsula and the one running openerp was also one of them which is casugin all ports to be blocked!!!

I am glad you fixed it.

Author

And my thanks for your help Karim.

No problem at all Nic.

Related Posts Replies Views Activity
3
Dec 19
20356
3
Jan 25
6727
2
Sep 24
1254
1
May 24
2631
2
May 24
13714