Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
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.
I think this is Apache's business. Try this link: http://stackoverflow.com/questions/8541182/apache-redirect-to-another-port
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:
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 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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 5/16/14, 10:26 AM|
|Seen: 3291 times|
|Last updated: 3/16/15, 8:10 AM|