If Apache could serve the file by itself, without my Web2Py application knowing it, it would be perfect!
But I don't know how to configure Apache so that it does not transmit the request to wsgihandler.py.
Here is my virtual host file:
<VirtualHost *:80>
ServerName
adomain.com ServerAlias
www.adomain.com WSGIDaemonProcess web2py user=www-data group=www-data display-name=%{GROUP}
WSGIProcessGroup web2py
WSGIScriptAlias / /home/www-data/web2py-2.10/wsgihandler.py
<Directory /home/www-data/web2py-2.10>
AllowOverride None
Order Allow,Deny
Deny from all
<Files wsgihandler.py>
Allow from all
</Files>
</Directory>
AliasMatch ^/([^/]+)/static/(.*) /home/www-data/web2py-2.10/applications/$1/static/$2
<Directory /home/www-data/web2py-2.10/applications/*/static/>
Order Allow,Deny
Allow from all
</Directory>
<Location /admin>
Deny from all
</Location>
<LocationMatch ^/([^/]+)/appadmin>
Deny from all
</LocationMatch>
</VirtualHost>
Is it even possible?
Thanks!