From 78969c0181d054c13a1babff1a20c4fb7e72b7db Mon Sep 17 00:00:00 2001 From: Tony Murray Date: Thu, 25 Jun 2020 11:24:18 -0500 Subject: [PATCH] don't need the api location anymore (all 3) --- doc/Installation/Install-LibreNMS.md | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/doc/Installation/Install-LibreNMS.md b/doc/Installation/Install-LibreNMS.md index 90ed7550c2..f56a959350 100644 --- a/doc/Installation/Install-LibreNMS.md +++ b/doc/Installation/Install-LibreNMS.md @@ -279,15 +279,12 @@ listen = /run/php-fpm-librenms.sock; location / { try_files $uri $uri/ /index.php?$query_string; } - location /api/v0 { - try_files $uri $uri/ /api_v0.php?$query_string; - } - location ~ \.php { - include fastcgi.conf; - fastcgi_split_path_info ^(.+\.php)(/.+)$; + location ~ [^/]\.php(/|$) { fastcgi_pass unix:/run/php-fpm-librenms.sock; + fastcgi_split_path_info ^(.+\.php)(/.+)$; + include fastcgi.conf; } - location ~ /\.ht { + location ~ /\.(?!well-known).* { deny all; } } @@ -321,15 +318,12 @@ listen = /run/php-fpm-librenms.sock; location / { try_files $uri $uri/ /index.php?$query_string; } - location /api/v0 { - try_files $uri $uri/ /api_v0.php?$query_string; - } - location ~ \.php { - include fastcgi.conf; - fastcgi_split_path_info ^(.+\.php)(/.+)$; + location ~ [^/]\.php(/|$) { fastcgi_pass unix:/run/php-fpm-librenms.sock; + fastcgi_split_path_info ^(.+\.php)(/.+)$; + include fastcgi.conf; } - location ~ /\.ht { + location ~ /\.(?!well-known).* { deny all; } }