Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
5725 Weergaven

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
</Directory>


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.

Avatar
Annuleer
Auteur

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

did you enable the a2ensite [confname]?

Auteur

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.

Gerelateerde posts Antwoorden Weergaven Activiteit
1
mrt. 15
6264
1
mrt. 15
10024
0
jun. 16
11874
2
nov. 19
5484
1
apr. 24
6944