<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
base_config.sa_auth.authenticators = [('htpasswd', HTPasswdPlugin('./passwd_file', plain_check))]
base_config.sa_auth.authenticators = [('htpasswd', HTPasswdPlugin('/home/wsgi/public_wsgi/python.sun/passwd_file', plain_check))]