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;',