Odoo Help


How to redirect http://myserver.com to http://myserver.com:8069/?db=mydb

on 5/16/14, 10:26 AM 4,525 views

I've just started to use Openerp and I ran into this problem: I don't know how to turn that domain into that url, I want that everytime a client enters to http://myserver.com it redirects to the other url with that database "mydb" is there a way to do that with just Openerp8 or I need an Apache in between.


swapnil wagh

--swapnil wagh--
| 6 5 8
Pune, India
--swapnil wagh--

My name is Swapnil A. Wagh. I studied Master Of computer Science and work as a Software Engineer. I’m a technology enthusiast and always eager to learn new and exciting technologies. I’m constantly looking for innovative solutions to age-old problems that push the limits of what we conceive to be possible.

swapnil wagh
On 5/23/14, 8:01 AM

In addition Specifically regarding to openerp you need to deploy openerp using mod_proxy. Check this blog post for more details http://tinyurl.com/pztrfvh

Richard Granata
On 5/16/14, 11:03 AM

To remove the need for ?db=mydb, you will have to run your server in Single Database Mode by adding the argument `--db-filter=mydb` when starting the server.

You are also supposed to be able to set the database filter in the config file but it doesn't always work perfectly for single database mode. The parameter is `dbfilter = mydb`

To remove the port, you would need to run the server on port 80. You can specify the port by adding the arguement `--xmlrpc-port=80` when starting the server. You can also change the port from 8069 to port 80 in the config file. The parameter is `xmlrpc_port = 80`.

Another way to use port 80 if you are behind a router or firewall is to have your router/firewall forward port 80 to port 8069 of your server. This will only work for connections coming in from outside.


To do that, you need to make a reverse-proxy. It is not very difficult (or yes ;-) to do it with Apache, or another webserver that has that kind of feature.

For Apache you need to install mod_proxy and add a little bit of configuration. Your customers will continue see the original URL, but internally Apache will redirect that connection to the new URL, without changing the cutomer browser's URL. That is the best option.

Take a look at these sites to get more information:


Alternativelly, you can make a redirect that visibly will change the user browser's URL, but I don't recommend you that way because it is less clean and exposes your real configuration to the word, and you will need to open a new port, 8069, to accept public connections.

To do that, you need to install mod_rewrite and add a little bit of configuration:


About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

4 follower(s)


Asked: 5/16/14, 10:26 AM
Seen: 4525 times
Last updated: 3/16/15, 8:10 AM