Hi, 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
or
Match ^/img.*$ Return
But nothink works
I have no idea what i am doing wrong. I would be very greatful for any help.
Cheers
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?
Tobias
14 October 2017, 14:21
Hello, ye, I got quite desparete and ran..
chmod 777 ./myproject -R
:D
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