use fastcgiParams
This commit is contained in:
parent
4fc212faa7
commit
94b52615e9
|
@ -184,25 +184,27 @@ in {
|
||||||
"deny all;";
|
"deny all;";
|
||||||
"~ ^/(?:.|autotest|occ|issue|indie|db_|console)".extraConfig =
|
"~ ^/(?:.|autotest|occ|issue|indie|db_|console)".extraConfig =
|
||||||
"deny all;";
|
"deny all;";
|
||||||
"~ ^/(?:index|remote|public|cron|core/ajax/update|status|ocs/v[12]|updater/.+|oc[ms]-provider/.+).php(?:$|/)".extraConfig =
|
"~ ^/(?:index|remote|public|cron|core/ajax/update|status|ocs/v[12]|updater/.+|oc[ms]-provider/.+).php(?:$|/)" =
|
||||||
''
|
{
|
||||||
fastcgi_split_path_info ^(.+?\.php)(\/.*|)$;
|
fastcgiParams = {
|
||||||
set $path_info $fastcgi_path_info;
|
SCRIPT_FILENAME =
|
||||||
try_files $fastcgi_script_name =404;
|
"$document_root$fastcgi_script_name";
|
||||||
include fastcgi_params;
|
PATH_INFO = "$path_info";
|
||||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
modHeadersAvailable = true;
|
||||||
fastcgi_param PATH_INFO $path_info;
|
front_controller_active = true;
|
||||||
# fastcgi_param HTTPS on;
|
};
|
||||||
|
extraConfig = ''
|
||||||
|
fastcgi_split_path_info ^(.+?\.php)(\/.*|)$;
|
||||||
|
set $path_info $fastcgi_path_info;
|
||||||
|
try_files $fastcgi_script_name =404;
|
||||||
|
include fastcgi_params;
|
||||||
|
|
||||||
# Avoid sending the security headers twice
|
# Enable pretty urls
|
||||||
fastcgi_param modHeadersAvailable true;
|
fastcgi_pass php-handler;
|
||||||
|
fastcgi_intercept_errors on;
|
||||||
# Enable pretty urls
|
fastcgi_request_buffering off;
|
||||||
fastcgi_param front_controller_active true;
|
'';
|
||||||
fastcgi_pass php-handler;
|
};
|
||||||
fastcgi_intercept_errors on;
|
|
||||||
fastcgi_request_buffering off;
|
|
||||||
'';
|
|
||||||
"~ ^/(?:updater|oc[ms]-provider)(?:$|/)" = {
|
"~ ^/(?:updater|oc[ms]-provider)(?:$|/)" = {
|
||||||
index = "index.php";
|
index = "index.php";
|
||||||
tryFiles = "$uri/ =404";
|
tryFiles = "$uri/ =404";
|
||||||
|
|
Loading…
Reference in New Issue