cat /var/log/httpd-access.log
192.168.2.3 - - [26/Oct/2017:17:02:36 +0200] "GET / HTTP/1.1" 500 539
cat /var/log/httpd-error.log
[Thu Oct 26 17:02:30.309542 2017] [wsgi:warn] [pid 44442] mod_wsgi: Compiled for Python/
2.7.11.[Thu Oct 26 17:02:30.310068 2017] [wsgi:warn] [pid 44442] mod_wsgi: Runtime using Python/
2.7.14.[Thu Oct 26 17:02:30.317491 2017] [mpm_prefork:notice] [pid 44442] AH00163: Apache/2.4.18 (FreeBSD) mod_wsgi/4.4.21 Python/2.7.14 configured -- resuming normal operations
[Thu Oct 26 17:02:30.317595 2017] [core:notice] [pid 44442] AH00094: Command line: '/usr/local/sbin/httpd -D NOHTTPACCEPT'
[Thu Oct 26 17:02:37.673047 2017] [wsgi:error] [pid 44678] [remote
192.168.2.3:0] mod_wsgi (pid=44678): Target WSGI script '/opt/websafety/var/console/console/wsgi.py' cannot be loaded as Python module.
[Thu Oct 26 17:02:37.673118 2017] [wsgi:error] [pid 44678] [remote
192.168.2.3:0] mod_wsgi (pid=44678): Exception occurred processing WSGI script '/opt/websafety/var/console/console/wsgi.py'.
[Thu Oct 26 17:02:37.673176 2017] [wsgi:error] [pid 44678] [remote
192.168.2.3:0] Traceback (most recent call last):
[Thu Oct 26 17:02:37.673232 2017] [wsgi:error] [pid 44678] [remote
192.168.2.3:0] File "/opt/websafety/var/console/console/wsgi.py", line 14, in <module>
[Thu Oct 26 17:02:37.673371 2017] [wsgi:error] [pid 44678] [remote
192.168.2.3:0] application = get_wsgi_application()
[Thu Oct 26 17:02:37.673400 2017] [wsgi:error] [pid 44678] [remote
192.168.2.3:0] File "/usr/local/lib/python2.7/site-packages/django/core/wsgi.py", line 14, in get_wsgi_application
[Thu Oct 26 17:02:37.673507 2017] [wsgi:error] [pid 44678] [remote
192.168.2.3:0] django.setup()
[Thu Oct 26 17:02:37.673529 2017] [wsgi:error] [pid 44678] [remote
192.168.2.3:0] File "/usr/local/lib/python2.7/site-packages/django/__init__.py", line 18, in setup
[Thu Oct 26 17:02:37.673648 2017] [wsgi:error] [pid 44678] [remote
192.168.2.3:0] apps.populate(settings.INSTALLED_APPS)
[Thu Oct 26 17:02:37.673676 2017] [wsgi:error] [pid 44678] [remote
192.168.2.3:0] File "/usr/local/lib/python2.7/site-packages/django/apps/registry.py", line 108, in populate
[Thu Oct 26 17:02:37.674013 2017] [wsgi:error] [pid 44678] [remote
192.168.2.3:0] app_config.import_models(all_models)
[Thu Oct 26 17:02:37.674039 2017] [wsgi:error] [pid 44678] [remote
192.168.2.3:0] File "/usr/local/lib/python2.7/site-packages/django/apps/config.py", line 198, in import_models
[Thu Oct 26 17:02:37.674240 2017] [wsgi:error] [pid 44678] [remote
192.168.2.3:0] self.models_module = import_module(models_module_name)
[Thu Oct 26 17:02:37.674265 2017] [wsgi:error] [pid 44678] [remote
192.168.2.3:0] File "/usr/local/lib/python2.7/importlib/__init__.py", line 37, in import_module
[Thu Oct 26 17:02:37.674377 2017] [wsgi:error] [pid 44678] [remote
192.168.2.3:0] __import__(name)
[Thu Oct 26 17:02:37.674400 2017] [wsgi:error] [pid 44678] [remote
192.168.2.3:0] File "/opt/websafety/var/console/frame/models.py", line 21, in <module>
[Thu Oct 26 17:02:37.674529 2017] [wsgi:error] [pid 44678] [remote
192.168.2.3:0] from squid.generator import Generator as SquidGenerator
[Thu Oct 26 17:02:37.674552 2017] [wsgi:error] [pid 44678] [remote
192.168.2.3:0] File "/opt/websafety/var/console/squid/generator.py", line 8, in <module>
[Thu Oct 26 17:02:37.674953 2017] [wsgi:error] [pid 44678] [remote
192.168.2.3:0] from _domain.squid import \\
[Thu Oct 26 17:02:37.674982 2017] [wsgi:error] [pid 44678] [remote
192.168.2.3:0] File "/opt/websafety/var/console/_domain/squid/__init__.py", line 4, in <module>
[Thu Oct 26 17:02:37.675110 2017] [wsgi:error] [pid 44678] [remote
192.168.2.3:0] from .ad_search import LdapUserSearcher, LdapGroupSearcher
[Thu Oct 26 17:02:37.675138 2017] [wsgi:error] [pid 44678] [remote
192.168.2.3:0] File "/opt/websafety/var/console/_domain/squid/ad_search.py", line 2, in <module>
[Thu Oct 26 17:02:37.675350 2017] [wsgi:error] [pid 44678] [remote
192.168.2.3:0] import ldap
[Thu Oct 26 17:02:37.675399 2017] [wsgi:error] [pid 44678] [remote
192.168.2.3:0] ImportError: No module named ldap
#
I think, the problem may be Your websafety_virtual_host
<VirtualHost *:8080>
ServerName proxy.diladele.lan
ServerAlias diladele.lan
ServerAdmin admini...@diladele.lan
WSGIDaemonProcess diladele.lan python-path=/opt/websafety/var/console user=websafety group=websafety display-name=%{GROUP}
WSGIProcessGroup diladele.lan
WSGIApplicationGroup %{GLOBAL}
WSGIScriptAlias / /opt/websafety/var/console/console/wsgi.py
<Directory /opt/websafety/var/console/console>
<Files wsgi.py>
Order deny,allow
Allow from all
Require all granted </Files>
</Directory>
Alias /static/ /opt/websafety/var/console/www/static/
<Directory /opt/websafety/var/console/www/static>
Order deny,allow
Allow from all
Require all granted </Directory>
</VirtualHost>
The mixing of old and new directives is tricki. I have tried
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
but no success, im noch apache expert.