Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

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

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

Nginx odoo 16 proxy and method not allowed 405

Subscribe

Get notified when there's activity on this post

This question has been flagged
nginx
2 Replies
3720 Views
Avatar
witoszek

Hello, I am installing Odoo 16 on Debian 10. I am studying the IoT configuration case, and for this I configured the proxy with nginx and I have it up and running. But when I ask for the hash with the URL I see that it gives me a URL such as http://127.0.0.1:8069/io/***/configure. I have tried entering with the URL http://192.168.1.*:8069/io/***/configure and it redirects me to https://192.168.1.*:8069/io/***/configure but it marks the error Method not allowed. I have also tried it with a domain and the server responds well, but if I go to http://domain/io/***/configure or https://domain/io/***/configure. It marks the error 405 Method not allowed.




If I go to nginx errors with odoo this appears: 2024/09/06 20:30:50 [error] 5773#5773: *2 connect() failed (111: Connection refused) while connecting to upstream, client: IP-PUBLIC , server: domain-generic.org, request: "GET /web HTTP/2.0", upstream: "http://127.0.0.1:8069/web", host: "domain-generic.org"

0
Avatar
Discard
Avatar
witoszek
Author Best Answer

Hi, I just did it and it works, but not everything. Now I get these errors:


connect() failed (111: Connection refused) while connecting to upstream, client: 8**.**.**.***, server: bit ****.dns.org, request: "GET /websocket HTTP/1.1", upstream: "http://127.0.0.1:8072/websocket", host: "www.bit***.dns.org"

root@bi:/var/log/nginx#

Another error when i trie to acces


"GET /websocket HTTP/1.1" 502 575


I needed to change /etc/hosts form : #127.0.0.1 localhost to 

127.0.0.1 bit****.dns.org

Becouse i need to get a certificate with certbot.

My configuration in nginx is 


# Odoo Upstreams

upstream odooserver {

    server 127.0.0.1:8069;

}

upstream odoochat {

server  127.0.0.1:8072;

}

map $http_upgrade $connection_upgrade {

default upgrade;

'' close;

}

location /websocket {

proxy_redirect off;

proxy_read_timeout 720s;

proxy_connect_timeout 720s;

proxy_send_timeout 720s;

# Add Headers for odoo proxy mode

proxy_set_header X-Forwarded-Host $host;

proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

proxy_set_header X-Forwarded-Proto $scheme;

proxy_set_header X-Real-IP $remote_addr;

#added 95-a 98

proxy_set_header Upgrade $http_upgrade;

proxy_set_header Connection "Upgrade";

proxy_pass http://odoochat;

  }


Configuration in odoo.conf 


addons_path = /usr/lib/python3/dist-packages/odoo/addons, /home/odoo/custom

default_productivity_apps = True

logfile = /var/log/odoo/odoo.log

proxy_mode = True

;workers = 64

xmlrpc = True

xmlrpc_interface = 127.0.0.1

xmlrpc_port = 8069

xmlrpcs = True

xmlrpcs_interface = 127.0.0.1

xmlrpcs_port = 8072


Thanks

0
Avatar
Discard
Avatar
Cybrosys Techno Solutions Pvt.Ltd
Best Answer

Hi,

Please check the Nginx configuration and proxy request to Odoo and refer to the blog below to double check the nginx configuration.

https://www.cybrosys.com/blog/how-to-configure-odoo-with-nginx-as-reverse-proxy


Hope it helps

0
Avatar
Discard
Enjoying the discussion? Don't just read, join in!

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

Sign up
Related Posts Replies Views Activity
How can I setup odoo on a path with nginx
nginx
Avatar
Avatar
1
May 24
4585
Nginx with Odoo configuration: host not found in upstream
nginx
Avatar
Avatar
Avatar
2
May 24
15952
SyntaxError: expected expression, got '<' Solved
nginx
Avatar
1
Jun 20
7349
Can I set up one reverse proxy for two Odoo sevices?
nginx
Avatar
0
Oct 17
4339
Using Cloudflare Proxy and Not Nginx Proxy
nginx
Avatar
Avatar
2
Jun 16
14765
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة 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 is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

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