location / moved to example.com, index_php flag

This commit is contained in:
Szekeres Bálint
2018-01-08 00:02:48 +01:00
parent 6869c15733
commit 0c03745b7f
4 changed files with 20 additions and 10 deletions

View File

@@ -1,11 +1,6 @@
# index
index {{ data.index_html ? 'index.html ' : '' }}index.php;
# process with {{ data.index_html ? 'index.html, ' : '' }}index.php
location / {
try_files $uri $uri/ {{ data.index_html ? '/index.html ' : '' }}/index.php?$query_string;
}
# handle .php
location ~ \.php$ {<span ng-if="data.file_structure === 'separated'">
include _php_fastcgi.conf;