diff --git a/hosts/temmie/services/userweb/httpd.nix b/hosts/temmie/services/userweb/httpd.nix
index 057e978..9b32cf2 100644
--- a/hosts/temmie/services/userweb/httpd.nix
+++ b/hosts/temmie/services/userweb/httpd.nix
@@ -49,22 +49,9 @@ in
logPerVirtualHost = false;
- extraConfig = ''
+ extraConfig = lib.mkIf mcfg.debugMode ''
TraceEnable on
LogLevel warn rewrite:trace3
-
-
- SetHandler application/x-httpd-php
-
-
- SetHandler application/x-httpd-php-source
- Require all denied
-
-
- SetHandler modperl
- PerlResponseHandler ModPerl::Registry
- Options +ExecCGI
-
'';
virtualHosts."temmie.pvv.ntnu.no" = {
@@ -148,6 +135,19 @@ in
AllowOverride All
Require all denied
+
+
+ SetHandler application/x-httpd-php
+
+
+ SetHandler application/x-httpd-php-source
+ Require all denied
+
+
+ SetHandler modperl
+ PerlResponseHandler ModPerl::Registry
+ Options +ExecCGI
+
'';
};
};