Odoo Help


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.


mod_wsgi uses DocumentRoot to serve files

Ismail Tabtabai
on 2/16/16, 4:17 AM 466 views

I have a deployment based on mod_wsgi on Ubuntu 15.10 and the following in VirtualHost site.conf

WSGIScriptAlias /mydep /opt/odoo/openerp-wsgi.py
WSGIDaemonProcess mydepdb user=odoo group=odoo processes=4 python-path=/opt/odoo display-name=%{GROUP}
WSGIProcessGroup mydepdb
<Directory /opt/odoo>
     Require all granted

When I visit www.mydomain.com/mydep I get served files from `/var/www/html` which happens to be the `DocumentRoot` for Apache. So, no css, images, etc are available to be served and the log file clearly states that the files are not found in `/var/www/html`.

I was thinking that mod_wsgi would know that it is a point at which to serve the deployment and add whatever links to the `/mydep` link. But that is not the case.

I further invistigated this issue, would a RewrtieRule in apache be needed to serve odoo from '/mydep'?

Ismail Tabtabai
on 2/16/16, 7:46 AM

did you enable the a2ensite [confname]?

Kazim Mirza
on 2/16/16, 8:51 AM

Yes, site was enabled. I've tried to serve odoo by PorxyPassMatch as well without success. Just any means of using SSL and not deploying it in the root of URL would do. My next try would be RewriteRule.

Ismail Tabtabai
on 2/16/16, 9:02 AM

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

1 follower(s)


Asked: 2/16/16, 4:17 AM
Seen: 466 times
Last updated: 2/16/16, 8:55 AM