SAO 4.4 with mod_wsgi server

56 views
Skip to first unread message

Noureddine EL GHANI

unread,
Dec 12, 2017, 5:10:08 AM12/12/17
to tryton
When I try to access SAO from a mod_wsgi server I get this error message

127.0.0.1 - - [12/Dec/2017:09:40:09 +0000] "GET / HTTP/1.1" 302 229
127.0.0.1 - - [12/Dec/2017:09:40:18 +0000] "GET /index.html HTTP/1.1" 405 178

Tryton client is working correctly with mod_wsgi

When I Run tryton in developpment mode, SAO works correctly

Here is my Apache 2.4 conf :

<VirtualHost *:8000>
ServerName TrytonERP
WSGIPassAuthorization On
WSGIScriptAlias / "C:\Python27\tryton-sao-4.4.0\package\tryton.wsgi"

<Directory "C:\Python27\tryton-sao-4.4.0\package">
Require all granted
</Directory>
</VirtualHost>

Sergi Almacellas Abellana

unread,
Dec 12, 2017, 6:00:38 AM12/12/17
to try...@googlegroups.com
El 12/12/17 a les 10:59, Noureddine EL GHANI ha escrit:
> When I try to access SAO from a mod_wsgi server I get this error message
>
> 127.0.0.1 - - [12/Dec/2017:09:40:09 +0000] "GET / HTTP/1.1" 302 229
> 127.0.0.1 - - [12/Dec/2017:09:40:18 +0000] "GET /index.html HTTP/1.1" 405 178
>
> Tryton client is working correctly with mod_wsgi

You should configure your server to server the static content from where
you have installed sao.
>
> When I Run tryton in developpment mode, SAO works correctly
>
> Here is my Apache 2.4 conf :
>
> <VirtualHost *:8000>
> ServerName TrytonERP
> WSGIPassAuthorization On
> WSGIScriptAlias / "C:\Python27\tryton-sao-4.4.0\package\tryton.wsgi"
>
> <Directory "C:\Python27\tryton-sao-4.4.0\package">

This should be probably without the package.
> Require all granted
> </Directory>
> </VirtualHost>
>

Hope it helps.


--
Sergi Almacellas Abellana
www.koolpi.com
Twitter: @pokoli_srk

Noureddine EL GHANI

unread,
Dec 12, 2017, 9:50:08 AM12/12/17
to tryton
Thanks a lot

Adding alias to static content in my VirtualHost solved the problem.

Regards

Noureddine EL GHANI

Josias Pérez

unread,
Dec 13, 2017, 11:55:06 AM12/13/17
to tryton
Where do you put TRYTOND_CONFIG ?

Noureddine EL GHANI

unread,
Dec 14, 2017, 8:25:08 AM12/14/17
to tryton
> Where do you put TRYTOND_CONFIG ?

It is a Windows environment variable set with the full path to your trytond.conf file.

The same thing apply to linux

Regards

Reply all
Reply to author
Forward
0 new messages