Skip to content

Instantly share code, notes, and snippets.

@Tolmark12
Forked from tylerflint/gist:823035
Created February 11, 2011 23:58
Show Gist options
  • Save Tolmark12/823302 to your computer and use it in GitHub Desktop.
Save Tolmark12/823302 to your computer and use it in GitHub Desktop.
general:
#
# writable_directories: a list of directories that your php app is
# allowed to write to. CAUTION: these directories should not contain
# executable code (ie: file.php)
#
writable_directories: []
web:
#
# document_root: The index directory of your application
#
document_root: /
#
# default_gateway: - All requests for files or directories that do not
# exist are routed to this file
#
# ############ SAMPLE:
# ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
# default_gateway: app.php
#
#
# error_pages: Custom http error pages
#
# ############ SAMPLE:
# ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
# error_pages:
# "404" : /not-found.php
# "500" : /internal-server-error.pph
#
#
# index_list: File names to look for when when url is a directory but no
# file is specified. ex: www.url.com/dir/
#
index_list: [index.php, index.html]
#
# far_future_expires: sets the expiration date of static objects to be far
# in the future so that a browser does not request them over and over.
# (images, javascripts, css, etc)
# CAUTION: if you enable this feature you must change the object's name
# every time the object changes. Details -> http://bit.ly/ex1sf
#
far_future_expires: false
#
# locations: A list of files / directories with access permissions.
# NOTE: evaluation stops as soon as a matching rule is found
#
# ############ SAMPLE:
# ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
# locations:
# - path: /internal/team/phone-numbers.php
# permissions:
# - rule: allow
# who: 172.16.254.1
# - rule: deny
# who: all
# - path: /my/secret/stuff
# permissions:
# - rule: deny
# who: all
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment