I'm running a WSGI application written in Python with flask on Apache. I have so far configured my vhost correctly to use my application.
<VirtualHost *:80>
ServerName mydomain.com
ErrorLog /var/www/abizeitung/error.log
LogLevel warn
CustomLog /var/www/abizeitung/access.log combined
WSGIDaemonProcess abizeitung user=www-data group=www-data threads=5
WSGIScriptAlias / /var/www/abizeitung/abizeitung.wsgi
<Directory /var/www/abizeitung>
WSGIProcessGroup abizeitung
WSGIApplicationGroup %{GLOBAL}
Order deny,allow
Allow from all
</Directory>
</VirtualHost>
My problem is that I'm able to view the source e.g. "localhost/abizeitung/app.py". Just changing "Allow from all" to "Deny from all" blocks all access to the application.