OpenERP with Subdomain

OpenERP in Subdomain Mode

To acess your OpenERP database with subdomain binding, can be easily done with the following steps in Ubuntu ( or similar Linux distros )

1)  Edit your /etc/hosts and add new lines like,


For eg:    selvam.locahost

2) Then add a new file,assuming endicus is the site name,

$ sudo gedit /etc/apache2/sites-available/endicus

<VirtualHost *>

DocumentRoot /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.1-py2.6.egg

ServerName db1.localhost

ServerAlias *.localhost

<Directory /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.1-py2.6.egg>

Options Indexes FollowSymLinks MultiViews +Includes

AllowOverride All

Order allow,deny

allow from all



I believe DocumentRoot does not have any impact here.

3) $sudo a2ensite endicus

4) In openerp-web.cfg (/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.1-py2.6.egg/doc or in /etc/ ),


dblist.filter=’BOTH’  (To filter Databases based on domain )

dbbutton.visible = False  ( To disable Databases button in login page )

Thats it, Restart apache and openerp-web.

When you access http://selvam.IP:8080 should list only the database,selvam.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: