I'm trying to setup my server with apache on an amazon EC2 server, but right now it isn't working. In the configuration files,
In /etc/apache2, I have:
httpd.conf:
LoadModule wsgi_module modules/mod_wsgi.so
WSGIPythonHome /home/ubuntu/www/env
modwsgi.conf:
WSGIApplicationGroup %{GLOBAL}
WSGIPassAuthorization On
WSGIDaemonProcess pyramid user=Wiz group=admin threads=4 python-path=/home/ubuntu/www/env/lib/python2.7/site-packages
WSGIScriptAlias /Visus /home/ubuntu/www/env/pyramid.wsgi
<Directory /home/ubuntu/www/env>
WSGIProcessGroup pyramid
Order allow,deny
Allow from all
</Directory>
In my virtualenv, I have :
pyramid.wsgi:
from pyramid.paster import get_app, setup_logging
ini_path = '/home/ubuntu/www/env/Wiz/production.ini'
setup_logging(ini_path)
application = get_app(ini_path, 'main')
And when I go to the base website, the default apache webpage comes up, saying the server is running, but when I go to example.com/Visus, I get a 404, when I should get my app. What's going wrong?