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

DB Redirecting For Domain & Sub Domain ?

Subscribe

Get notified when there's activity on this post

This question has been flagged
db_filterdomain_filterwebsite
1 Reply
7408 Views
Avatar
Aby


I have an instance (Ubuntu 14.04) in Amazon EC2

I have 3 domain names (in Big Rock)

like www.mycompany.com

      sub1.mycompany.com

      sub2.mycompany.com


And 3 Databases 

like mycompany

      sub1

      sub2

I have to redirect the domain name as

     www.mycompany.com : Home page of db-mycompany

     sub1.mycompany.com : Home page of db-sub1

     sub2.mycompany.com : Home page of db-sub2

     *redirect with out uname or pwd (direct to home page)

1
Avatar
Discard
Avatar
Ermin Trevisan
Best Answer

Check for db-filter using google and forum search. This post might be helpful: https://www.odoo.com/fr_FR/forum/help-1/question/how-to-set-database-filter-on-sub-domain-for-odoo-website-using-apache-web-server-64935     

This might also help for a better understanding:https://www.odoo.com/fr_FR/forum/how-to/installation-12/how-do-i-use-openerp-with-multiple-domains-on-single-server-1814

1
Avatar
Discard
Aby
Author

Thanks #Ermin But lemme know is it mandatory to install apache.Actually im hosting in aws.So can we do this with out installing apache ?

Ermin Trevisan

You'll need a proxy server, for many different reason (such as port redirection from 8069 to 80/443 for example), but also for this purpose. This has nothing to do with AWS (we are also on AWS). There are several options for proxy servers: Apache, nginx are the most popular. Actually we are testing caddy server (www.caddyserver.com) because it seems to be quite easy and has inbuilt let's encrypt certification and automatic renewal. Please upvote my answer and check it as solved.

Aby
Author

Can we solve it by editing in odoo-server.conf file ?

Ermin Trevisan

You might be able to achieve it without a proxy server by adding the proper host names in the host file together with the dbfilter parameter in the conf file (which is anyway needed, also if you deploy a proxy server). Check my amended answer.

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
Default database with website module
db_filter website 9.0
Avatar
Avatar
1
Nov 23
7630
Order search records by the condition they match
search domain_filter website v14
Avatar
0
Mar 23
2004
db-filter IIS
windows db_filter website dbfilter
Avatar
1
Aug 15
4773
How do I remove the numbers from the slugs in my blog and blogpost? Solved
website
Avatar
Avatar
Avatar
Avatar
3
Sep 25
2493
Login Website Solved
website
Avatar
3
Oct 25
149265
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