I know how to have a Python Bottle server:
import os
from bottle import route, template, default_app
os.chdir(os.path.dirname(__file__))
@route('/hello')
def hello():
return template('Hello world')
application = default_app()
run with WSGI, configured like this with Apache:
<VirtualHost *:80>
ServerName example.com
<Directory />
AllowOverride All
Require all granted
</Directory>
WSGIScriptAlias / /var/www/wsgi_test/app.wsgi
</VirtualHost>
Is it possible to do the WSGI configuration directly in the .htaccess
?