summaryrefslogtreecommitdiff
path: root/web-server/apache-conf/025-www.nongnu.org
diff options
context:
space:
mode:
Diffstat (limited to 'web-server/apache-conf/025-www.nongnu.org')
-rw-r--r--web-server/apache-conf/025-www.nongnu.org52
1 files changed, 52 insertions, 0 deletions
diff --git a/web-server/apache-conf/025-www.nongnu.org b/web-server/apache-conf/025-www.nongnu.org
new file mode 100644
index 0000000..2295c49
--- /dev/null
+++ b/web-server/apache-conf/025-www.nongnu.org
@@ -0,0 +1,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>