Hi. Im using turbogears with python 3.5.2 and apache 2.4.18 in ubuntu 16.04
I compiled python with  --enable-shared  option also I compiled mod_wsgi 
4.6.4 and i checked with ldd mod_wsgi.so that the library is ok.
Everything works ok. But when the user enters a secure route the app fails 
to authenticate.
The passwords are located in a text file called passwd_file (Turbogears 
example)

So i follow Graham recommendation to use  WSGIPassAuthorization to pass the 
control to the wsgi app.

My apache tg2.conf as follows:
Enter code here...

<VirtualHost *:8080>

 ServerName sun

 WSGIPassAuthorization On

 WSGIProcessGroup sun

 WSGIDaemonProcess sun user=wsgi group=wsgi threads=4 python-path=/home/wsgi
/public_wsgi/.virtualenvs/tg2env/lib/python3.5/site-packages

 WSGIScriptAlias / /home/wsgi/public_wsgi/python.sun/app.wsgi

 <Location />

WSGIPassAuthorization On

</Location>

 #Serve static files directly without TurboGears

 Alias /images  /home/wsgi/public_wsgi/python.sun/pythonsun/public/images

 Alias /css /home/wsgi/public_wsgi/python.sun/pythonsun/public/css

 Alias /js /home/wsgi/public_wsgi/python.sun/pythonsun/public/js

 <Directory /home/wsgi/public_wsgi/python.sun/>

     WSGIProcessGroup sun

     WSGIApplicationGroup %{GLOBAL}

     WSGIScriptReloading On

     Require all granted

 </Directory>

 ErrorLog ${APACHE_LOG_DIR}/error.log

 CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>

WSGIPythonHome /home/wsgi/public_wsgi/.virtualenvs/tg2env

WSGIPythonPath /home/wsgi/public_wsgi/.virtualenvs/tg2env/lib/python3.5

Can any one help me what i missing here?
I would appreciate any help.
Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to