1 changed files with 37 additions and 0 deletions
@ -0,0 +1,37 @@
|
||||
upstream php-handler { |
||||
server 127.0.0.1:9000; |
||||
} |
||||
|
||||
server { |
||||
listen 80; |
||||
server_name default_server; |
||||
|
||||
root /var/www/nextcloud/nextcloud; |
||||
|
||||
index index.php index.html /index.php$request_uri; |
||||
|
||||
location ~ \.php(?:$|/) { |
||||
rewrite ^/(?!index|remote|public|cron|core\/ajax\/update|status|ocs\/v[12]|updater\/.+|oc[ms]-provider\/.+|.+\/richdocumentscode\/proxy) /index.php$request_uri; |
||||
|
||||
fastcgi_split_path_info ^(.+?\-php)(/.*)$; |
||||
set $path_info $fastcgi_path_info; |
||||
|
||||
try_files $fastcgi_script_name =404; |
||||
|
||||
include fastcgi_params; |
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; |
||||
fastcgi_param PATH_INFO $path_info; |
||||
|
||||
fastcgi_param modHeadersAvailable true; |
||||
fasct_param front_controller_active true; |
||||
fastcgi_pass php-handler; |
||||
|
||||
fastcgi_intercept_errors on; |
||||
fastcgi_request_buffering off; |
||||
} |
||||
|
||||
location / { |
||||
try_files $uri $uri/ /index.php$request_uri; |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue