summaryrefslogtreecommitdiff
path: root/webserver/apache-conf/025-www.nongnu.org
blob: 2295c493b05fe1d5ead41825505ebd2bd2bad4a5 (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
44
45
46
47
48
49
50
51
52
<VirtualHost *:80>
# ServerName for the Mockup Server "nongnu.org" server
	ServerName www.nongnu.housegordon.org
	ServerAlias nongnu.housegordon.org
	ServerAdmin agn@gnu.org

## Mockup: real server name
#	ServerAdmin webmasters@gnu.org
#	ServerName www.nongnu.org
#	ServerAlias nongnu.org



	# Temporary for IPv6: we'll assign the AAAA record directly to
	# www.gnu.org when we're 100% confident about its reliability
	#ServerALias www.ipv6.nongnu.org
	#ServerAlias www6.nongnu.org

	DocumentRoot /var/www/savannah-checkouts/non-gnu/

	<Directory /var/www/savannah-checkouts/non-gnu>
		# Turn on SSI processing
		Options Indexes IncludesNoExec MultiViews SymLinksIfOwnerMatch
		# AllowOverride FileInfo so that people can use .htaccess to redirect subdirectories elsewhere
		# Cf. RT #738350. Ward, 2012-05-18
		AllowOverride FileInfo
	</Directory>

	ErrorDocument 404 /nongnu-404.html

	RewriteEngine on
  #RewriteLog "/var/log/apache2/nongnu-rewrite.log"
  #RewriteLogLevel 3
	RedirectMatch ^/$ http://savannah.nongnu.org/
	# automatically handle projects that have migrated from non-gnu to gnu
	RewriteCond /var/www/savannah-checkouts/gnu/$1 -d
	RewriteRule ^/([^/]+)(.*)$ http://www.gnu.org/software/$1$2 [R,L]
	# and finally handle packages whose names have changed:
	RewriteRule ^/auctex/$ http://www.gnu.org/software/auctex/ [R]
	RewriteRule ^/auctex$ http://www.gnu.org/software/auctex/ [R]
	RewriteRule ^/qadsl(.*)$ http://www.gnu.org/software/alive$1 [R,L]
	RewriteRule ^/hotp-toolkit(.*)$ http://www.nongnu.org/oath-toolkit$1 [R,L]
	RewriteRule ^/fenfire(.*)$ http://fenfire.org/ [R,L]

  AddHandler server-parsed .html .shtml

	# Include nongnu/* symlinks
	Include /etc/apache2/symlinks/symlinks-nongnu.conf

	ErrorLog /var/log/apache2/nongnu-error.log
	CustomLog /var/log/apache2/nongnu-access.log combined
</VirtualHost>