On Wednesday, April 15, 2020 at 5:31:48 PM UTC-7, Anatoli Hristov wrote:
>
> nothing in the web2py log file, file not even created!
>
>
Have you set up the logging controls?  There's logging.conf in the web2py 
folder.  My quick search doesn't show where in the book this is described, 
but the sample logging.conf in the distribution should help.



 

> I don't know how to define the favico.ico in nginx. 
> However, if I delete the routes.py everything works, but I need to define 
> domains for my apps!
>
>
That would be using a URL match and the try_files verb .   I do the 
root_static in routes.py for my /favico.ico. but I use try_files to dump a 
word list on some GETs for funny URLs (outsiders probing the site for 
leaks).

/dps

On Thursday, 16 April 2020 01:38:28 UTC+2, Dave S wrote:
>>
>>
>>
>> On Wednesday, April 15, 2020 at 4:20:18 PM UTC-7, Anatoli Hristov wrote:
>>>
>>> Found some log in nginx access.log:
>>>
>>> 10.63.238.14 - - [15/Apr/2020:23:18:00 +0000] "GET / HTTP/1.0" 500 21 
>>> "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, 
>>> like Gecko) Chrome/80.0.3987.163 Safari/537.36"
>>> 10.63.238.14 - - [15/Apr/2020:23:18:01 +0000] "GET /favicon.ico 
>>> HTTP/1.0" 500 21 "https://my.domain.xyz/"; "Mozilla/5.0  
>>> AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36"
>>>
>>
>> Your ".xyz" matches what is in the routes.py?
>>
>> If you're not having nginx short cut to the static files (favicon.ico, in 
>> this case), then I would turn on web2py logging and see if the web2py.log 
>> has anything  
>>
>> Taking a quick look at my routes.py, I don't set domains, just the 
>> default application, but I do add
>> root_static = ['favicon.ico', 'robots.txt']
>>
>>
>> Don't know if that will help, but then I'm not a routes.py power user.
>>
>> /dps
>>
>>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/2e34b167-0642-4a72-a7c8-94149be77003%40googlegroups.com.

Reply via email to