summaryrefslogtreecommitdiff
path: root/web-server/apache-conf/030-star.nongnu.org
blob: b0a4347baac6ecd203d81f7786365b516ace7723 (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
37
38
39
40
41
42
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>