تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
10005 أدوات العرض

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

الصورة الرمزية
إهمال
الكاتب أفضل إجابة

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.

الصورة الرمزية
إهمال
أفضل إجابة

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.

الصورة الرمزية
إهمال
الكاتب

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?

الكاتب

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.

الكاتب

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.

الكاتب

OK will do.

الكاتب

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.

الكاتب

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

الكاتب

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?

الكاتب

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.

الكاتب

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 ?

الكاتب

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.

الكاتب

And my thanks for your help Karim.

No problem at all Nic.

المنشورات ذات الصلة الردود أدوات العرض النشاط
3
ديسمبر 19
21265
3
يناير 25
7417
2
سبتمبر 24
2289
1
مايو 24
3476
2
مايو 24
14777