Last active
August 29, 2015 14:24
-
-
Save andyg5000/7e14b4a0c478e071b12e to your computer and use it in GitHub Desktop.
Puphpet drupal development config for nginx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
servername: | |
server_name: servernane.dev | |
www_root: /var/www/servername/www | |
access_log: /var/www/servername/logs/access_log | |
error_log: /var/www/servername/logs/error_log | |
listen_port: '80' | |
index_files: | |
- index.html | |
- index.htm | |
- index.php | |
locations: | |
servername-root: | |
location: '/' | |
try_files: | |
- $uri | |
- '@rewrite' | |
servername-rewrite: | |
location: '@rewrite' | |
location_cfg_append: | |
rewrite: '^ /index.php' | |
servername-php: | |
location: '~ \.php$' | |
autoindex: off | |
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' | |
location_cfg_append: | |
fastcgi_read_timeout: 300 | |
client_max_body_size: 1m | |
ssl: '0' | |
ssl_cert: '' | |
ssl_key: '' | |
ssl_port: '' | |
ssl_protocols: '' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Requires setting the "listen" in /etc/php5/fpm/pool.d/www.conf to the following:
listen = 127.0.0.1:9000