diff options
| author | mo khan <mo@mokhan.ca> | 2025-09-15 16:28:52 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-09-15 16:28:52 -0600 |
| commit | 17c037d94bce038e07cadc2225730253762373c1 (patch) | |
| tree | 31eb3aac17b2c6fc3030bfa1952a01c16ed16049 | |
| parent | 9d1dce090892a5cf23d6682576b01e9858134dc7 (diff) | |
chore: start to add apache config
| -rw-r--r-- | Brewfile | 1 | ||||
| -rwxr-xr-x | assignments/1/bin/server | 6 | ||||
| -rw-r--r-- | assignments/1/etc/apache/apache.conf | 13 |
3 files changed, 20 insertions, 0 deletions
diff --git a/Brewfile b/Brewfile new file mode 100644 index 0000000..580ce3e --- /dev/null +++ b/Brewfile @@ -0,0 +1 @@ +brew "apache2" 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> |
