Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Immobiliari
    • Agència immobiliària
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consultoria
    • Empresa comptable
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Mobles
    • Menjar
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Sistemes d'energia solar
    • Shoe Maker
    • Serveis de neteja
    • Instal·lacions HVAC
    Altres
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

Should I accept requests on IP:8070 event with nginx?

Subscriure's

Get notified when there's activity on this post

This question has been flagged
addressnginxipbookmarked
9 Respostes
15908 Vistes
Avatar
Pascal Tremblay

Hello there,

We now have nginx installed on Our Ubuntu 14.04. it seems a great software. 

Now, we can enter test.lapagept.com (port 80) to get our original address : 223.26.196.31:8070 (odoo test server). Our domain name (test.lapagept.com) stays in the browser's address bar. No port number is displayed. good.

But what happens with those one they have this old 23.226.196.31:8070 bookmarked? They still want to connect with this old address...

We are trying this (bold) setup in our /etc/nginx/sites-enabledtest.lapagept.com file :

        upstream odoo-test {

                server 127.0.0.1:8070;

        }

        server {

                listen 443;

                server_name test.lapagept.com;

                access_log /var/log/nginx/test.lapagept.com.access.log;

                error_log /var/log/nginx/test.lapagept.com.error.log;

                ssl on;

                ssl_certificate /etc/nginx/ssl/server.crt;

                ssl_certificate_key /etc/nginx/ssl/server.key;

                keepalive_timeout 60;

                ssl_ciphers HIGH:!ADH:!MD5;

                ssl_protocols SSLv3 TLSv1;

                ssl_prefer_server_ciphers on;

                proxy_buffers 16 64k;

                proxy_buffer_size 128k;

                location / {

                    proxy_pass http://odoo-test;

                    proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;

                    proxy_redirect off;

                    proxy_set_header Host $host;

                    proxy_set_header X-Real-IP $remote_addr;

                    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

                    proxy_set_header X-Forwarded-Proto https;            

                }

                location ~* /web/static/ {

                    proxy_cache_valid 200 60m;

                    proxy_buffering on;

                    expires 864000;

                    proxy_pass http://odoo-test;

                }

}

# This allows for someone to go to http and get redirected to https automatically

    server {

        listen 80;

        server_name test.lapagept.com;

        add_header Strict-Transport-Security max-age=2592000;

        return 301 http://test.lapagept.com$request_uri;

    }

# This allows for someone to go to http and get redirected to https automatically

    server {

        listen 8070;

        server_name 23.226.196.31;

        add_header Strict-Transport-Security max-age=2592000;

        return 301 http://test.lapagept.com$request_uri;

    }


Without the bold lines, all seems good.

With the bold lines, we get this error :

    nginx: [emerg] bind() to 23.226.196.31:8070 failed (99: Cannot assign requested address)


Could you help please? Idea?

0
Avatar
Descartar
Ermin Trevisan

I use Apache myself, so I'm not firm with nginx, but why don't you use the same URL rewrite for port 8070 as for port 80 (with the $request_uri part appended)?

Pascal Tremblay
Autor

Corrected. Result is the same. Thanks.

Ermin Trevisan

Ideas? hmmm - add odoo-test.lapagept.com to the server_name - put the 8070 server block before the 80 server block Maybe you give it a try...

Pascal Tremblay
Autor

(update above, ermin trevisan means test.lapagept.com)

Avatar
Maxime Chambreuil
Best Answer

I may have missed something but you can't have two applications (Odoo and Nginx) listenning on the same port (8070).

If you haven't touched your firewall configuration, users should still be able to access http://23.226.196.31:8070

1
Avatar
Descartar
Pascal Tremblay
Autor

Thanks for your comment. So, if I well understand, I'm losing my time with this. I can use http://23.226.196.31:8070 in my browser, but it won't be rename in the browser address bar for http://test.lapagept.com... This is not a problem. I try this soon.

Avatar
Bole
Best Answer

Yes you can, but, you need to bind odoo to listen only to 127.0.0.1 requests, (in config file set : proxy_mode = True, xmlrpc_interface = 127.0.0.1, also xmprpcs_interface=127.0.0.1) then you can make nginx listen to 8070 and even redirect 8070 (old bookmark) to https (443) ... hope it helps

1
Avatar
Descartar
Pascal Tremblay
Autor

VEry interesting. We are near of the Verity! thanks

Avatar
Pascal Tremblay
Autor Best Answer

Thanks all for your precious comments.

-1
Avatar
Descartar
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Registrar-se
Related Posts Respostes Vistes Activitat
Why I cannot open Odoo from a PC different of the One I make the database?
address ip
Avatar
Avatar
2
de març 15
6105
I want to store the remote Ip address(client) in my DB
address client ip
Avatar
0
de març 15
5373
deny access to my_ip_adress: port_number Solved
domain nginx ip port
Avatar
Avatar
Avatar
Avatar
3
de gen. 25
8446
How to get ip address of login user? Solved
address ip openerp6.1 userlogin
Avatar
Avatar
2
de jul. 22
15810
How to redirect request myip:8069 with nginx in SSL context? Solved
nginx ip ssl redirect 8069
Avatar
Avatar
Avatar
Avatar
3
de maig 24
20282
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now