Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

297
Views
Using a Reverse Proxy With An LMS "Odoo". Breaks in Domain but works in localhost

I have set up Odoo (14.0) an LMS that uses Python3, and have it running perfectly on localhost on a linux remote server. Since it is running locally I wanted to set a reverse proxy and use a domain to allow others to view it.

However, when I set up a reverse proxy with Apache for a domain it seems that nothing works on the domain, while still working fine on localhost.

Firstly I have to add a "/web" at the end of the normal url to even get the login forms to appear. Once I have logged in and navigated to "my website" everything shows up looking very off as if the theme is broken, and it looks extremely different in comparison to localhost (pictures below of comparison). Any links I click on simply add a "/#" to the end of my url without bringing me anywhere or changing anything.

Here is what my apache file looks like:

<VirtualHost *:80>
            ServerAdmin xxx
            ServerName  xxxx
    
            ProxyHTMLStripComments on
            ProxyRequests off
            SetOutputFilter proxy-html
            ProxyHTMLDoctype XHTML
            ProxyPreserveHost On
            SSLProxyEngine on
    
            # Odoo defaults to port 8069
            ProxyPass / http://127.0.0.1:8069/
            ProxyPassReverse / http://127.0.0.1:8069/
            <Proxy *>
                    Order allow,deny
                    Allow from all
            </Proxy>
    
    
            ErrorLog ${APACHE_LOG_DIR}/xxx-error.log
    
            # Possible values include: debug, info, notice, warn, error, crit,
            # alert, emerg.
            LogLevel warn
    
            CustomLog ${APACHE_LOG_DIR}/xxx-access.log combined
    
</VirtualHost>

This is what my Odoo.conf file looks like. I recently added "proxy_mode = true" to see if that may fix it:

[options]
; This is the password that allows database operations:
; admin_passwd = admin
db_host = False
db_port = False
db_user = odoo
db_password = False
;addons_path = /usr/lib/python3/dist-packages/odoo/addons
proxy_mode = true

How It Looks When Visiting Domain:

How it looks when visiting domain

Vs

How It Looks on Localhost

How it looks on localhost

I am a little new to using apache so any help would be greatly appreciated!

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!