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
    • Property 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
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

What does config setting proxy_mode do?

Subscribe

Get notified when there's activity on this post

This question has been flagged
configuration
2 Replies
44171 Views
Avatar
thenon

I'm trying to set up a reverse proxy (in order to get SSL working on Windows - doesn't seem like there's any other way).

Trouble is that when I access https://foo (via the reverse proxy), OpenERP responds with a redirect to http://foo.

Setting

proxy_mode = True

does not make it leave the url alone like I'd hope. What is it supposed to do? How can I get it to not change the protocol?

Thanks

0
Avatar
Discard
Avatar
A Nhomar Hernandez
Best Answer

Your problem is with the configuration od the web-server.

What are you using, nginx or apache2?

If you are using nginx:

upstream openerpweb {
#If the server is in other IP change localhost by the ip of openerp server
server localhost:8069 weight=1 max_fails=3 fail_timeout=30s;
#Just uncomment this line as many times as servers you have, remember change 
#the port
#server localhost:8069 weight=1 max_fails=3 fail_timeout=30s;}

server {
#If Apache is in the server change the port to avoid port conflicts.
listen 80;

###################################################################
#Here Hostname that will be called in the browser.
#Remember you should have 1.- DNS CNAME or 2.- edit your /etc/hosts
#with this name dns.example.com.
###################################################################
server_name    dns.example.com;
#Put name of instance replacing 'openerp'
#to be sure every instance manage its own log
access_log    /var/log/nginx/openerp-access-http.log;
error_log    /var/log/nginx/openerp-error-http.log;
#What will happen in root.
location / {
    proxy_pass    http://openerpweb;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;
    # by default, do not forward anything
    proxy_redirect off;
    error_page 502 = /50x.html;
}
#How we will manage static files
location ~* /web/static {
    proxy_cache_valid 200 60m;
    send_timeout 200;
    proxy_read_timeout 200;
    proxy_connect_timeout 200;
    proxy_buffering    on;
    expires 864000;
    proxy_pass    http://openerpweb;
}
#webdav stuff
#TODO This doc
 location ~* /webdav {
    proxy_cache_valid 200 60m;
    send_timeout 200;
    proxy_read_timeout 200;
    proxy_connect_timeout 200;
    proxy_buffering    on;
    expires 864000;
    proxy_pass    http://openerpweb;
}
#When Server is down, change by our own 50x.html template
#A 50x template is the html shown when openerp server fails
location = /50x.html {
    root /usr/share/nginx/www;
}}

This is the config file to use.

If you have any doubt, just make an answer ;-)

Regards.

0
Avatar
Discard
thenon
Author

Hi, thank you for your response - but using IIS with ARR actually. Its possible the mistake is in my configuration there, but my question still stands - what does proxy_mode do?

Avatar
NeoNile LLC, Mustafa Rawi
Best Answer

According to this:

Enable correct behavior when behind a reverse proxy

proxy_mode = True

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
Hello Everyone,
configuration
Avatar
0
Mar 26
7
Checkout with a calendar that is related to Appointments
configuration
Avatar
1
Feb 26
277
📌 Unable to login Outlook — 😕📧 +1 (844) 886-3118
configuration
Avatar
0
Feb 26
2
Real Time connection lost issue in Odoo19 community edition on Ubuntu
configuration
Avatar
Avatar
1
Feb 26
252
Plantillas de marketing
configuration
Avatar
Avatar
1
Feb 26
310
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 Svenska ภาษาไทย 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