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 redirect request myip:8069 with nginx in SSL context?

By
Pascal Tremblay
on 11/4/16, 1:41 PM 222 views

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.


1

Axel Mendoza

--Axel Mendoza--
10238
| 7 7 8
Camaguey, Cuba
--Axel Mendoza--

DevOps - Full stack - Software Architect - Developer - Technology Integrator

I could help you to develop anything and solve complex problems based on technologies, integrations and tricky stuffs mostly in Python with OpenERP/Odoo, Zato, Django and many others frameworks programming languages and technologies.

I offers consulting services to anyone with an unanswered questions or needs for customizations. Think about it, maybe it's better to have an expert to solve your issues and projects than having a full time employee trying to understand what to do an how

Reach me at aekroft@gmail.com

Axel Mendoza
On 11/4/16, 2:06 PM

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

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

Pascal Tremblay
on 11/4/16, 5:36 PM

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: 11/4/16, 1:41 PM
Seen: 222 times
Last updated: 11/4/16, 5:37 PM