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 220.127.116.11 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.
Click below to sign up and get $100 of credit to try our products over 60 days!