Hi Anil,
If you are working on local machine you should edit /etc/hosts with something like this:
127.0.0.1 foo.localhost
127.0.0.1 bar.localhost
where foo and bar are the db names.
Your virtual host file should look like this:
<VirtualHost *:80>
ServerName localhost
ServerAlias *.localhost // Use this if you want dbfillter on subdomain
ErrorLog /var/log/openerp/openerp-error.log
CustomLog /var/log/openerp/openerp-access.log combined
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyRequests Off
ProxyPass / http://localhost:8069/
ProxyPassReverse / http://localhost:8069/
ProxyVia On
LogLevel warn
</VirtualHost>
After that write dbfilter = ^%d$ in your openerp/tools/config.py file. After that restart apache2 and openerp.
In case you are doing all this on VPS and you bough a domain from domian provider, then you dont need to edit/etc/hosts file.
You can read a blog post for more information : http://goo.gl/1Ub8sc
Hi Anil, I assume that you have created the databases x2 already right? -- http://opensourceholic.com/2014/05/09/deploy-openerp-using-mod_proxy-and-mod_wsgi-on-linux-server/ The page above looks sound.. But haven't tested !!but i see??. v7: group.add_option("--db-filter", dest="dbfilter", default='.*', v8 / v9alpha: group.add_option("--db-filter", dest="dbfilter", my_default='.*', So Check versions, and wsgi config and other configs. and clearly the dB's need to be created first... Good Luck
@vee I already have more than two database. I don't want to config the openerp with wsgi. I have applied the filter pattern inside the config.py file. thanks for your comment.