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!
Le samedi 23 janvier 2016 16:52:33 UTC+1, Anthony a écrit :
>
> You could configure Apache itself to respond, or you can use web2py's
> routes.py to route the incoming request to a controller that then returns
> the requested file.
>
> Anthony
>
> On Saturday, January 23, 2016 at 10:30:52 AM UTC-5, Jean-François Milants
> wrote:
>>
>> Hi,
>>
>> I would like to get certificates from Let's Encrypt (
>> https://letsencrypt.org/) for my Web2Py applications, but I don't know
>> how to make it work with Let's Encrypt.
>>
>> I already manage to get a certificate for a PHP application, using the
>> --webroot method. This method creates a temporary file in
>> "${webroot-path}/.well-known/acme-challenge"
>> to check the validity of the domain/server/... Then, the server from Let's
>> Encrypt do an HTTP GET command on this file.
>>
>> How to do this with Web2Py? How to make Web2Py answer to a request on a
>> file that is not in a controller/view?
>>
>> NOTE : my applications runs on Apache2.2, using the WSGI handler.
>>
>> Thanks!
>>
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.