Hosting Web.Py using mod_wsgi under apache2 not working
I have been trying to host my web.py simple REST API application and it is somehow not working… PLEASE HELP.
Here is my Apache2 config snippet.
<VirtualHost *:80> ServerAdmin webmaster@MySite.com DocumentRoot /var/www/mysite Servername 126.96.36.199 ServerAlias Centos www.MySite.com WSGIScriptAlias /service /var/www/mysite/MyApp.py/ Alias /static /var/www/mysite/ AddType text/html .py <Directory /var/www/mysite> Order deny,allow Allow from all # SetHandler wsgi-script # Options ExecCGI Options Indexes FollowSymLinks Includes ExecCGI </Directory> </VirtualHost>
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×