summaryrefslogtreecommitdiff
path: root/web-server/apache-conf/030-star.nongnu.org
diff options
context:
space:
mode:
Diffstat (limited to 'web-server/apache-conf/030-star.nongnu.org')
-rw-r--r--web-server/apache-conf/030-star.nongnu.org43
1 files changed, 43 insertions, 0 deletions
diff --git a/web-server/apache-conf/030-star.nongnu.org b/web-server/apache-conf/030-star.nongnu.org
new file mode 100644
index 0000000..b0a4347
--- /dev/null
+++ b/web-server/apache-conf/030-star.nongnu.org
@@ -0,0 +1,43 @@
+<VirtualHost *:80>
+
+# 2005.08.20 - 2005.08.23
+#
+# This is a somewhat "clever" way of working around the ugliness of
+# providing *.nongnu.org, and supercedes the original rewrite
+# mess.
+#
+# The idea here is to work with .symlinks (and the generated
+# symlinks.conf) but without as little redirection or rewriting as
+# possible. Rewriting based on %{HTTP_HOST} was incredibly
+# problematic because of the later rewrites that may occur from
+# .symlinks. We give the server a fake name and then alias everything
+# *.nongnu.org to it. Since www.nongnu.org is canonically defined
+# above as a ServerName, it takes precedence - only project hosts
+# are caught by this net.
+#
+# - baughj
+
+# ServerName for the Mockup Server "nongnu.org" server
+ServerName foobar.nongnu.housegordon.org
+ServerAlias *.nongnu.housegordon.org
+ServerAlias nongnu.housegordon.org
+ServerAdmin agn@gnu.org
+
+## Mockup: real server name
+## ServerName foobar.nongnu.org
+## ServerAlias *.nongnu.org
+
+<Directory /var/www/savannah-checkouts/non-gnu>
+ Options +Indexes
+</Directory>
+
+VirtualDocumentRoot /var/www/savannah-checkouts/non-gnu/%1
+CustomLog /var/log/apache2/nongnu-projects.log combined
+ErrorLog /var/log/apache2/nongnu-projects-error.log
+UseCanonicalName Off
+
+# Include vhost symlinks
+
+Include /etc/apache2/symlinks/symlinks-nongnu-vhost.conf
+
+</VirtualHost>