Ok so i'm trying to run Python with Bottle.py, thru Apache and mod_wsgi, and it doesn't work so far...
I'm running it on windows, using a xampp. python v2.7
the code i added to httpd(Apache config):
<VirtualHost *>
ServerName example.com
WSGIScriptAlias / C:\xampp\htdocs\GetXPathsProject\app.wsgi
<Directory C:\xampp\htdocs\GetXPathsProject>
Order deny,allow
Allow from all
</Directory>
</VirtualHost>
my app.wsgi code:
import os
os.chdir(os.path.dirname(__file__))
import bottle
application = bottle.default_app()
and my hello.py:
from bottle import route
@route('/hello')
def hello():
return "Hello World!"
when i'm trying to go to localhost/hello i get an 404 error and i don't have any other error on the Apache log file, probably missing something basic, will be glad for help.