Skip to content

Instantly share code, notes, and snippets.

@unrivaledcreations
Created March 6, 2017 14:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save unrivaledcreations/1259888f881c1460a82ebb67f7910773 to your computer and use it in GitHub Desktop.
Save unrivaledcreations/1259888f881c1460a82ebb67f7910773 to your computer and use it in GitHub Desktop.
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
Copy link
Author

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