mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-08-09 22:36:45 +08:00
initial commit
This commit is contained in:
14
public/templates/_php.conf.html
Normal file
14
public/templates/_php.conf.html
Normal file
@@ -0,0 +1,14 @@
|
||||
# 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>
|
||||
}
|
Reference in New Issue
Block a user