summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Parri <simonparri@ganzeria.com>2025-09-15 17:06:28 -0500
committerSimon Parri <simonparri@ganzeria.com>2025-09-15 17:07:37 -0500
commit4b5679be9190371141c56ee7875ce47c86fb487f (patch)
tree574e7a37665175e23be78384c2a401669f401bda
parent33e329430bdcc7ba051b3ee75f032aa604259ec9 (diff)
downloadnixos-config-4b5679be9190371141c56ee7875ce47c86fb487f.tar.gz
nixos-config-4b5679be9190371141c56ee7875ce47c86fb487f.zip
hosts/tomato: Enable basic Apache configuration
-rw-r--r--hosts/tomato/default.nix5
-rw-r--r--modules/apache/local.conf7
-rw-r--r--modules/apache/local.nix5
3 files changed, 17 insertions, 0 deletions
diff --git a/hosts/tomato/default.nix b/hosts/tomato/default.nix
index 0e7d146..d80afa2 100644
--- a/hosts/tomato/default.nix
+++ b/hosts/tomato/default.nix
@@ -30,6 +30,11 @@
this.buildMachines = ["pinto"];
+ this.apache = {
+ enable = true;
+ vhosts = ["local"];
+ };
+
this.hosts = {
lan.home = true;
mine = true;
diff --git a/modules/apache/local.conf b/modules/apache/local.conf
new file mode 100644
index 0000000..8223286
--- /dev/null
+++ b/modules/apache/local.conf
@@ -0,0 +1,7 @@
+UserDir "/var/www"
+DirectoryIndex _.html _.txt
+
+<Directory "/home/*/www">
+ Options MultiViews ExecCGI
+ Require all granted
+</Directory>
diff --git a/modules/apache/local.nix b/modules/apache/local.nix
new file mode 100644
index 0000000..3648fe1
--- /dev/null
+++ b/modules/apache/local.nix
@@ -0,0 +1,5 @@
+{ config, ... }:
+
+{
+ hostName = config.networking.hostName;
+}