How can routes.py be configured to return the requested file? The page requested is something like this:
http://example.com/.well-known/acme-challenge/dkB1xZ7bb_x1JgWilNwyYNrteHPUoqnLvNfnn3gS3b0 The response is a plain text, something like this: EZvKzpPMR2sCRRPqfyi_fOBvx9cV9FS59jmTpAMsLlc.wsviFLCnmgajAEkPk0QNPbOowoXWV4hIjs1Sxb_fAt8 I don't know how to do it using routes.py I am running my application on Google App Engine El sábado, 23 de enero de 2016, 16:52:33 (UTC+1), Anthony escribió: > > 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.