Skip to content

Instantly share code, notes, and snippets.

@cluke009
Last active November 19, 2019 21:59
Show Gist options
  • Save cluke009/341d607301219e25f0aeabf8de7e4177 to your computer and use it in GitHub Desktop.
Save cluke009/341d607301219e25f0aeabf8de7e4177 to your computer and use it in GitHub Desktop.
# The configuration of app when it is exposed to the web.
web:
locations:
"/":
root: "web"
passthru: true
rules:
'^(.*)$':
passthru: '/index.php?routestring=$1'
'^(admincp/)$':
passthru: '/index.php?routestring=$1'
'\.(css|js|gif|jpe?g|png|ttf|eot|woff2?|otf|cast|mp4|json|ico|svg?)$':
allow: true
expires: 3M
'^/robots\.txt$':
allow: true
'^/sitemap\.xml$':
allow: true
"/login.php":
# The public directory of the app, relative to its root.
root: "web"
# The front-controller script to send non-static requests to.
passthru: '/core/login.php?do=login'
"/css.php":
# The public directory of the app, relative to its root.
root: "web"
# The front-controller script to send non-static requests to.
passthru: '/core/css.php'
"/admincp":
# The front-controller script to send non-static requests to.
passthru: '/core/admincp/index.php'
"/modcp":
# The front-controller script to send non-static requests to.
passthru: '/core/modcp/index.php'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment