Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Fixed locations section of a puphpet/puphpet config.yaml file; demonstrates nginx locations configuration fix.
locations:
nxvl_awesome_location1:
location: /
try_files:
- $uri
- $uri/
- /index.php$is_args$args
fastcgi: ''
fastcgi_index: ''
fastcgi_split_path: ''
proxy: ''
proxy_redirect: ''
nxvl_awesome_location2:
location: '~ \.php$'
try_files:
- $uri
- $uri/
- /index.php$is_args$args
fastcgi: '127.0.0.1:9000'
fastcgi_index: index.php
fastcgi_split_path: '^(.+\.php)(/.*)$'
fast_cgi_params_extra:
- 'SCRIPT_FILENAME $request_filename'
- 'APP_ENV dev'
set:
- '$path_info $fastcgi_path_info'
proxy: ''
proxy_redirect: ''
@unrivaledcreations

This comment has been minimized.

Copy link
Owner Author

@unrivaledcreations unrivaledcreations commented Mar 6, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment