nginxconfig.io/public/templates/_php.conf.html

14 lines
519 B
HTML

# 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;
</span><span ng-if="data.file_structure === 'unified'">
<ng-include src="'templates/_php_fastcgi.conf.html'" onload="refreshHighlighting()"></ng-include></span>
}