Hi
I have an Apache server with few virtual hosts I'm trying to add dockerised apache with mod_wsgi as another virtual host using ProxyPass solution suggested by Graham
http://serverfault.com/questions/701634/running-docker-with-apache-wsgi-side-by-side-with-apacheI'm trying to use it in normal mod_wsgi which I compiled from source to version 4.4.13 (I'm not familar with
mod_wsgi-express )
and I set
WSGITrustedProxyHeaders to X-Forwarded-Server X-Forwarded-Port X-Forwarded-For
unfortunately I still have
502 Proxy Error
It looks like something is not working
settings for dockerised apache are as follows
WSGIScriptAlias / /var/www/html/django/Django/wsgi.py
WSGIPythonPath /var/www/html/django:/var/www/html/django/lib/python2.7/site-packages
<VirtualHost *:80>
ServerName
test.co.uk ServerAlias
django.test.co.uk WSGITrustedProxyHeaders X-Forwarded-Server X-Forwarded-Port X-Forwarded-For
ErrorLog logs/django_error_log
CustomLog logs/django_access_log common
Alias /static/ "/var/www/html/django/Django/test/"
<Directory /var/www/html/django/Django/test/>
Order deny,allow
Allow from all
</Directory>
<Directory /var/www/html/django/Django>
<Files wsgi.py>
Order deny,allow
Allow from all
</Files>
</Directory>
</VirtualHost>
and settings of the apache proxy
<VirtualHost *:80>
ServerAlias
django.test.co.uk ServerName
django.test.co.uk ProxyPass /
http://112.22.16.23:8080 ProxyPassReverse /
http://112.22.16.23:8080 ErrorLog logs/django_error_log
CustomLog logs/django_access_log common
RequestHeader set X-Forwarded-Port 80
</VirtualHost>
Any ideas?