Odoo Help

Welcome!

This community 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.

0

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

By
Omar
on 5/16/14, 10:26 AM 3,178 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.

6

swapnil wagh

--swapnil wagh--
1559
| 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

4
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.

2

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:

http://httpd.apache.org/docs/2.2/mod/mod_proxy.html

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:

http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

4 follower(s)

Stats

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