UrlToolkit returns 403

13 October 2017, 20:58
I would like to server static some files. This is my UrlToolkit:

UrlToolkit {
ToolkitID = nette
RequestURI exists Return
Match \.(pdf|js|ico|gif|jpg|png|css|rar|zip|tar\.gz|map)$ Return
Match .* Rewrite /index.php

But when i try to reach my jpg file, it shows 403.

I also tryed add match
  Match ^/img Return


  Match ^/img.*$ Return

But nothink works

I have no idea what i am doing wrong. I would be very greatful for any help.

Hugo Leisink
13 October 2017, 22:20
Are the access rights of the file itself and the directory where it's located correct? What does the error logfile say about the cause of the 403?
14 October 2017, 14:21
ye, I got quite desparete and ran..
chmod 777 ./myproject -R


Also I couldnt find any record in any log I found (/var/www/myapp/log/error.log, /var/log/hiawatha/error.log) created in the time when i tryed to access my file using hiawatha
Hugo Leisink
15 October 2017, 00:42
A 403 must have an entry in the error logfile...
This topic has been closed.