From 5c5f54ffc61ba773092684a9755022edcb710f80 Mon Sep 17 00:00:00 2001 From: Julien Berard Date: Thu, 25 Jun 2015 12:29:47 +0100 Subject: [PATCH] added index.php to the default index --- templates/default/default.conf.erb | 4 ++-- .../templates/default/override.conf.erb | 4 ++-- test/unit/spec/rackspace_nginx_php_shared.rb | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/templates/default/default.conf.erb b/templates/default/default.conf.erb index 291634a..0c9c9f8 100644 --- a/templates/default/default.conf.erb +++ b/templates/default/default.conf.erb @@ -7,7 +7,7 @@ server { error_log <%= node['nginx']['log_dir'] %>/default.error.log; location / { - index index.html index.htm; + index index.php index.html index.htm; } location ~* \.php$ { @@ -17,4 +17,4 @@ server { fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } -} \ No newline at end of file +} diff --git a/test/fixtures/cookbooks/rackspace_nginx_php_test/templates/default/override.conf.erb b/test/fixtures/cookbooks/rackspace_nginx_php_test/templates/default/override.conf.erb index 96d4744..9f4afcd 100644 --- a/test/fixtures/cookbooks/rackspace_nginx_php_test/templates/default/override.conf.erb +++ b/test/fixtures/cookbooks/rackspace_nginx_php_test/templates/default/override.conf.erb @@ -7,7 +7,7 @@ server { error_log <%= node['nginx']['log_dir'] %>/override.error.log; location / { - index index.html index.htm; + index index.php index.html index.htm; } location ~* \.php$ { @@ -17,4 +17,4 @@ server { fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } -} \ No newline at end of file +} diff --git a/test/unit/spec/rackspace_nginx_php_shared.rb b/test/unit/spec/rackspace_nginx_php_shared.rb index d404008..630bd91 100644 --- a/test/unit/spec/rackspace_nginx_php_shared.rb +++ b/test/unit/spec/rackspace_nginx_php_shared.rb @@ -21,7 +21,7 @@ "access_log /var/log/nginx/#{enabled_suite}.access.log;", "error_log /var/log/nginx/#{enabled_suite}.error.log;", 'location / {', - 'index index.html index.htm;', + 'index index.php index.html index.htm;', 'location ~* \.php$ {', 'try_files $uri = 404;', 'include fastcgi_params;',