Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
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 188.8.131.52 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.×