summaryrefslogtreecommitdiff
path: root/webserver/wwwcvs-orig-files/modules/wwwgnu-nongnu/files/star.nongnu.org
blob: aaaccc19e743817d3981a55f3e013700652b6508 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<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 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>