adding scripts to populate ENV data into code

This commit is contained in:
Ric Harvey
2015-01-27 15:47:40 +00:00
parent 0e22c00033
commit 9ffa7b3050
3 changed files with 32 additions and 8 deletions

View File

@@ -33,14 +33,17 @@ server {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_index index.php;
include fastcgi_params;
}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
# deny access to . files, for security
#
location ~ /\.ht {
deny all;
location ~ /\. {
access_log off;
log_not_found off;
deny all;
}
}