You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for this project. Works well. Below are instructions HOWTO for centos 7 and httpd (apache)
I had to add "application = app" to the bottom of server.py for this to work.
Additionally, modified index.html to use relative links for anchor tags, instead of "/". Same for for finding "filename=", to make css and javascript to work.
WSGIScriptAlias /mha /var/www/python/mha/server.py
WSGIDaemonProcess FlaskApp python-path=/var/www/python/mha/:/usr/local/lib/python3.6/site-packages/
WSGIProcessGroup FlaskApp
<Directory /var/www/python/mha/>
Order allow,deny
Allow from all
</Directory>
Alias /media/ /var/www/python/mha/media/
Alias /static/ /var/www/python/mha/static/
<Directory /var/www/python/mha/static>
Order allow,deny
Allow from all
</Directory>
<Directory /var/www/python/mha/media>
Order allow,deny
Allow from all
</Directory>
The text was updated successfully, but these errors were encountered:
Thanks for this project. Works well. Below are instructions HOWTO for centos 7 and httpd (apache)
I had to add "application = app" to the bottom of server.py for this to work.
Additionally, modified index.html to use relative links for anchor tags, instead of "/". Same for for finding "filename=", to make css and javascript to work.
$ yum install python3-mod_wsgi.x86_64
[mha]# pwd
/var/www/python/mha
[mha]# tail server.py
application = app
[mha]# cat /etc/httpd/conf.d/header-analyzer.conf```
The text was updated successfully, but these errors were encountered: