Merge pull request #84 from garethgreenaway/master

Issue #76 - Hide ini files.
This commit is contained in:
Jaisen Mathai 2011-09-08 16:54:54 -07:00
commit b61d78c23d
8 changed files with 115 additions and 2 deletions

View file

@ -73,6 +73,18 @@ Now you'll need to replace instances of `/path/to/openphoto/html/directory` with
vi /etc/apache2/sites-enabled/openphoto-vhost.conf
By default, any access to ini files is denied with a "Not Found" 404 HTTP code. To enable a 404, or Forbidden return code, change the following lines in the virtual host file.
Uncomment:
# 403 Forbidden for ini files
#RewriteRule \.ini$ - [F,NC]
Comment:
# 404 Not Found for ini files
AliasMatch \.ini$ /404
### PHP
You should also verify that your `php.ini` file has a few important values set correctly.