Skip to Content
Menu
This question has been flagged
6 Replies
7698 Views

Ive installed odoo 9 on a remote server.  How do I configure the domain/ip?  So far my ip:8069 shows me the database selector.  I want to configure it now so that clients go to ip:80 and see the website.

 



Avatar
Discard
Best Answer

edit your /etc/odoo-server.conf file

change xmlrpc_port = 8069

to xmlrpc_port = 80

restart server

The search feature on this forum works pretty well too :) so if for instance this change doesn't work for you, you can see other people who have made changes to iptables, front ended nginx etc. search:  change port 8069 and see what all this site has to offer.

Avatar
Discard
Author

Ok I didnt make myself clear enough or perhaps Im confused. As I understand it, there are 2 separate points of entry into the system. The one IP:8069 takes the user to a database selector. This is only for employees of the company to log into the database and makes sales or purchases etc. The other is for clients who wish to view the company website, view the catalog and perhaps buy something online. I understand 8069 is the backend for employees. But if I make the change you suggested, then employees would now have to go to IP:80 to access the database selector. But where do clients go to view the website catalog?

Odoo will only be hosted on the port, the single port, you specify. The way you grant access to the back end is by having the login system. You can have people self register, which gives them limited access as default (like you would use for a recurring customer/client/partner), or you can setup their accounts for them and give them access to all the backend stuff (your sales team/designer/accountant/etc). The login is in the top right of your homepage, and reads "Sign In" in a default website setting.

Author

So any client that wants to view my catalog/website, needs to go to the ip:8069, select the database and register and log in?

No, not necessarily. if you have multiple databases, either get rid of the ones you are not using, or set the following in your /etc/odoo-server.conf

db_name = DatabaseName

dbfilter = DatabaseName

list_db = False

OK but they still have to register? So they'd basically have to login and view a special version of odoo designed as a website for that particular kind of user? They can't just punch in an IP and see a catalog website as they might do at Walmart.com or something like that?

@Marcio, they will not have to register once proper settings are made using proxy server, database elimination, or iptables.

OK I'm really confused. Is there a tutorial somewhere?

On Sun, Dec 18, 2016 at 3:51 PM Damon <damon@solutionarts.net> wrote:

@Marcio, they will not have to register once proper settings are made using proxy server, database elimination, or iptables.

--
Damon


Sent by Odoo S.A. using Odoo.

Answer the following questions so myself or someone else will be better able to help you:

Do you have the Website Builder App installed as a part of Odoo? (needs to be Yes to visit site w/o having to login)

Do you have more than one Odoo database?

If yes, do you need more than one Odoo database?

If yes, are you sure?(if you have more than one db, then using the dbfilter, dbname changes above will help)

If I go to http://yourodoosite.com , what do I see?

If I go to http://yourodoosite.com:8069 , what do I see?

if in console/terminal you type in:

psql -l

what is returned?

Author

Ok:

1. Yes, website builder app is installed

2. Im not using a domain name, since that is pointing somewhere else at the moment. Im using an ip.

3. IP points me to the default webpage on my server, which is not configured, so I get a 404 not found.

4. IP:8069 takes me to odoo, my database selector. I have 2 databases at present but the test one I can eliminate. I dont need it, I dont need more than one database.

5. When I type that in the ssh terminal to my server I get:

root@server:/etc/odoo# psql -l

perl: warning: Setting locale failed.

perl: warning: Please check that your locale settings:

LANGUAGE = (unset),

LC_ALL = (unset),

LANG = "en_US.UTF-8"

are supported and installed on your system.

perl: warning: Falling back to the standard locale ("C").

psql: FATAL: role "root" does not exist

Author

Got it! So now ip:8069 loads to the website directly.

cool! so it sounds like you've already got a webserver installed like apache or nginx. From there you can look at the proxy info setup to get requests from port 80 directed to your 8069 Odoo installation. This looks promising if using Apache https://opensourceholic.com/2014/05/09/deploy-openerp-using-mod_proxy-and-mod_wsgi-on-linux-server/

and for the psql that errored on you, you'd likely have to 'sudo su odoo' to run that command. It'll just show you the postgres databases you have running. No biggie now :)

Best Answer

The proper solution is not to redefine the xmlrpc port, but to use a proxy server. If you plan to deploy more than one database, use a proper dbfilter configuration. Google search shows you plenty of helpful documents when searching for odoo, dbfilter and proxy server.

Avatar
Discard