summaryrefslogtreecommitdiff
path: root/assignments/1
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-09-15 16:28:52 -0600
committermo khan <mo@mokhan.ca>2025-09-15 16:28:52 -0600
commit17c037d94bce038e07cadc2225730253762373c1 (patch)
tree31eb3aac17b2c6fc3030bfa1952a01c16ed16049 /assignments/1
parent9d1dce090892a5cf23d6682576b01e9858134dc7 (diff)
chore: start to add apache config
Diffstat (limited to 'assignments/1')
-rwxr-xr-xassignments/1/bin/server6
-rw-r--r--assignments/1/etc/apache/apache.conf13
2 files changed, 19 insertions, 0 deletions
diff --git a/assignments/1/bin/server b/assignments/1/bin/server
new file mode 100755
index 0000000..65bf633
--- /dev/null
+++ b/assignments/1/bin/server
@@ -0,0 +1,6 @@
+#!/bin/sh
+set -e
+
+cd "$(dirname "$0")/.."
+
+httpd -d . -f etc/apache/apache.conf start
diff --git a/assignments/1/etc/apache/apache.conf b/assignments/1/etc/apache/apache.conf
new file mode 100644
index 0000000..869fda2
--- /dev/null
+++ b/assignments/1/etc/apache/apache.conf
@@ -0,0 +1,13 @@
+LoadModule proxy_module modules/mod_proxy.so
+LoadModule proxy_http_module modules/mod_proxy_http.so
+LoadModule cache_module modules/mod_cache.so
+LoadModule disk_cache_module modules/mod_disk_cache.so
+
+<VirtualHost :8080>
+ ProxyPreserveHost On
+ ProxyRequests Off
+ CacheRoot /var/cache/apache2/proxy
+ CacheEnable disk /
+ CacheDirLevels 2
+ CacheDirLength 1
+</VirtualHost>