Web setup questions and protecting files

(Tyler Littlefield) #1

Hello all:
Right now, I have a codeigniter site that seems to load fine, but when I access /files/foo, I get a 404. I’ve attached my server config, if anyone has any ideas and examples of how to fix this I’d greatly appreciate it.
To add to this, what’s the best way to prevent access to all files beginning with a . and certain extensions?
foo.com {
root /var/www/foo
index index.html index.htm
fastcgi / unix:/var/run/php.sock php {
index index.php

(Toby Allen) #2

Can you provide more info?

What URL are you trying to access?

What files exist in the directory you are tring to access?

Do you get 404 if you request the file not just the directory?