diff --git a/nixos/modules/services/monitoring/nagios.nix b/nixos/modules/services/monitoring/nagios.nix
index e18a81def70d..6a3b97769462 100644
--- a/nixos/modules/services/monitoring/nagios.nix
+++ b/nixos/modules/services/monitoring/nagios.nix
@@ -58,9 +58,7 @@ let
Options ExecCGI
- AllowOverride None
- Order allow,deny
- Allow from all
+ Require all granted
SetEnv NAGIOS_CGI_CONFIG ${cfg.cgiConfigFile}
@@ -68,9 +66,7 @@ let
Options None
- AllowOverride None
- Order allow,deny
- Allow from all
+ Require all granted
'';