trouble accessing files from the css/js/img files under public folder

michelle | 11 months ago

I just set up and started using Recess and I was trying to add a css to my application. So I added my css file to the css folder (recess-v0.20/apps/firstApp/public/css/) but I can't access it from the application. When I load the page, I get a 403 error:

403 Forbidden
You don't have permission to access /recess-v0.20/apps/firstApp/public/css/default.css

I double checked my file permissions to ensure that I didn't have any of those files locked, and I should be able to read (or write, or execute) default.css (and any other file under my recess directory)

I also tried copying the css folder outside the apps folder (just under recess-v0.20/) and it had no problem accessing it there.

I was wondering if there's a setting in Recess that locks files. or if there's another type of permission that might be locking these files?

Any ideas?

Thanks!
michelle



florian | 11 months ago

This is caused by the file 'recess/apps/.htaccess'. This file contains 'deny from all' and therefore prevents any direct access.

A simple solution is to create a file with the name .htaccess in your recess/apps/firstApp/public folder with the content 'allow from all'. Then it should work.

Florian

reply

michelle | 11 months ago

Awesome, thank you!

reply



Welcome KrisJordan!

Web: http://www.krisjordan.com/

Location: North Carolina

Edit Profile