mirror of
https://github.com/YunoHost-Apps/nextcloud_ynh.git
synced 2024-09-03 19:55:57 +02:00
Urgent security issue in NGINX/php-fpm (#237)
Urgent security issue in NGINX/php-fpm
This commit is contained in:
commit
eb50fe7ec1
1 changed files with 2 additions and 1 deletions
|
@ -47,7 +47,7 @@ location ^~ __PATH__/ {
|
||||||
#rewrite ^/.well-known/host-meta.json __PATH__/public.php?service=host-meta-json last;
|
#rewrite ^/.well-known/host-meta.json __PATH__/public.php?service=host-meta-json last;
|
||||||
|
|
||||||
location __PATH__/ {
|
location __PATH__/ {
|
||||||
rewrite ^ __PATH__/index.php$request_uri;
|
rewrite ^ __PATH__/index.php;
|
||||||
}
|
}
|
||||||
|
|
||||||
location = __PATH__/robots.txt {
|
location = __PATH__/robots.txt {
|
||||||
|
@ -66,6 +66,7 @@ location ^~ __PATH__/ {
|
||||||
location ~ ^__PATH__/(?:index|remote|public|cron|core/ajax/update|status|ocs/v[12]|updater/.+|ocs-provider/.+|ocm-provider/.+)\.php(/.*|)$ {
|
location ~ ^__PATH__/(?:index|remote|public|cron|core/ajax/update|status|ocs/v[12]|updater/.+|ocs-provider/.+|ocm-provider/.+)\.php(/.*|)$ {
|
||||||
include fastcgi_params;
|
include fastcgi_params;
|
||||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||||
|
try_files $fastcgi_script_name =404;
|
||||||
fastcgi_param SCRIPT_FILENAME $request_filename;
|
fastcgi_param SCRIPT_FILENAME $request_filename;
|
||||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||||
fastcgi_param HTTPS on;
|
fastcgi_param HTTPS on;
|
||||||
|
|
Loading…
Add table
Reference in a new issue