Skip to Content
Menú
This question has been flagged
3 Respostes
18797 Vistes

Hello there,

I managed to configure nginx to work on SSL with my self-signed certificate.

https://odoo.lapagept.com works well in browser.

http://odoo.lapagept.com is well redirected to https://odoo.lapagept.com.


The only problem I have for this moment is when I want to access my odoo directly with an IP like 209.54.66.15:8069.


I have put this code in nginx to redirect request from port 8069 to my ssl address :

server {
    listen      209.54.66.15:8069;
    server_name 209.54.66.15;
    rewrite ^/(.*)$ https://odoo.lapagept.com/$1 permanent;
}


But as soon as this line is in my openerp-server.conf, nginx fails to start.

    xmlrpc_interface = 127.0.0.1


If I stop odoo server, nginx can start.

If I remove the line "xmlrpc_interface = 127.0.0.1", nginx can start.


What should I do?

I would want to access my odoo also by ip address.


Avatar
Descartar
Best Answer

Hi Pascal

The thing is that you will not access to your Odoo using that Nginx configuration, you will be redirected to the domain url leaving the ip address, you could do some changes here to get it working.

You could change the use of the port 8069 at Nginx or at the Odoo config so they are not trying to access to the same port or you could put your Nginx config for ip address with no port at all to use the default port 80

Avatar
Descartar
Autor

I removed the line "xmlrpc_interface = 127.0.0.1" from my openerp-server.conf. I need to access my odoo by IP too. Thanks

Best Answer

Hi, you can follow this: https://youtu.be/-3wV7A_4s-w

Hope it helps

Avatar
Descartar
Best Answer

Little late for response but I think it will help other visitors.

Change your xmlrpc_interface address config to xmlrp_interface = 0.0.0.0. Starting server with 127.0.0.1 starts a local loopback and only listens request from local server. When you change to 0.0.0.0 it starts listening on all ip address.

Avatar
Descartar
Related Posts Respostes Vistes Activitat
1
de jul. 23
7917
1
de jul. 18
8935
3
de maig 24
16083
0
de set. 23
2319
1
de des. 23
35240