summaryrefslogtreecommitdiff
path: root/web-server/wwwcvs-orig-files/modules/wwwgnu-nongnu/files/www.gnu.org-common
diff options
context:
space:
mode:
Diffstat (limited to 'web-server/wwwcvs-orig-files/modules/wwwgnu-nongnu/files/www.gnu.org-common')
-rw-r--r--web-server/wwwcvs-orig-files/modules/wwwgnu-nongnu/files/www.gnu.org-common366
1 files changed, 366 insertions, 0 deletions
diff --git a/web-server/wwwcvs-orig-files/modules/wwwgnu-nongnu/files/www.gnu.org-common b/web-server/wwwcvs-orig-files/modules/wwwgnu-nongnu/files/www.gnu.org-common
new file mode 100644
index 0000000..7937796
--- /dev/null
+++ b/web-server/wwwcvs-orig-files/modules/wwwgnu-nongnu/files/www.gnu.org-common
@@ -0,0 +1,366 @@
+
+ AddHandler server-parsed .html .shtml
+ #DirectoryIndex index.html index.shtml index.xhtml home.html home.shtml
+ DirectoryIndex index.html home.html
+ <Directory /var/www/>
+ # Turn on SSI processing
+ Options Indexes IncludesNoExec MultiViews SymLinksIfOwnerMatch
+ AllowOverride Indexes FileInfo Limit
+ </Directory>
+
+ <Directory /var/www/software>
+ Options Indexes IncludesNoExec MultiViews SymLinksIfOwnerMatch
+ </Directory>
+
+ <Directory /var/www/savannah-checkouts>
+ Options Indexes IncludesNoExec MultiViews SymLinksIfOwnerMatch
+ AllowOverride Indexes FileInfo Limit
+ </Directory>
+
+ # The clisp project has old SSI commands in their html files, but they are
+ # broken. They asked us to disable SSI on their pages. See #656741. I've asked
+ # them to clean up their pages, in the mean time we have the following.
+ # 2011-01-18, Ward.
+ <Directory /var/www/savannah-checkouts/gnu/clisp>
+ Options Indexes -IncludesNoExec MultiViews SymLinksIfOwnerMatch
+ AllowOverride Indexes FileInfo Limit
+ </Directory>
+
+ # Cf RT #703015; we need apache 2.2.15 for this... Ward, 2011-11-07
+ #SSILastModified off
+
+
+ # Timeout: The number of seconds before receives and sends time out.
+ # Defaults to 300; new.py in new-savannah-project sometimes takes (much) longer.
+ # I wish there was a way to set this just for one directory, this is a bit scary.
+ # Ward, 2012-09-26.
+ TimeOut 3000
+
+ # Probably better hidden. Cf. RT #835581. Ward, 2013-06-12
+ <Directory /var/www/CVS>
+ Order Deny,Allow
+ Deny from all
+ </Directory>
+
+ <Directory /var/www/new-savannah-project>
+ Order Deny,Allow
+ Deny from all
+
+ # Savannah IPs
+ Allow from 140.186.70.70
+ Allow from 140.186.70.71
+ Allow from 140.186.70.72
+ Allow from 140.186.70.73
+ Allow from 140.186.70.74
+ Allow from 140.186.70.75
+
+ Allow from 208.118.235.70
+ Allow from 208.118.235.71
+ Allow from 208.118.235.72
+ Allow from 208.118.235.73
+ Allow from 208.118.235.74
+ Allow from 208.118.235.75
+
+ # Office dsl
+ Allow from 74.94.156.210
+
+ # localhost
+ Allow from 127.0.0.1
+
+ AddHandler python-program .py
+ PythonHandler new
+ PythonDebug on
+ </Directory>
+
+ <Directory /var/www/new-savannah-project2>
+ Order Deny,Allow
+ Deny from all
+
+ # Savannah IPs
+ Allow from 140.186.70.70
+ Allow from 140.186.70.71
+ Allow from 140.186.70.72
+ Allow from 140.186.70.73
+ Allow from 140.186.70.74
+ Allow from 140.186.70.75
+
+ Allow from 208.118.235.70
+ Allow from 208.118.235.71
+ Allow from 208.118.235.72
+ Allow from 208.118.235.73
+ Allow from 208.118.235.74
+ Allow from 208.118.235.75
+
+ # Office dsl
+ Allow from 74.94.156.210
+
+ # localhost
+ Allow from 127.0.0.1
+
+ AddHandler python-program .py
+ PythonHandler new2
+ PythonDebug on
+ </Directory>
+
+
+ <FilesMatch "\.(ico|pdf|jpe?g|png|gif|js|css)$">
+ ExpiresActive On
+ ExpiresDefault "access plus 1 month"
+ </FilesMatch>
+
+ # jag: RT#363702
+ ExpiresActive On
+ ExpiresByType text/html M600
+
+ #rt#486596
+ #ExpiresByType image/gif A86400
+ #ExpiresByType image/png A86400
+ #ExpiresByType image/jpg A86400
+ #ExpiresByType text/css A86400
+ #ExpiresByType text/javascript A86400
+
+ # jag: Switched 404 from CGI to a mod_python script
+ # ErrorDocument 404 /cgi-bin/404.cgi
+ # disabled this abomination. too slow. ward, 2008-09-02
+ #ErrorDocument 404 /mp404/404.py
+ ErrorDocument 404 /gnu-404.html
+
+ # added as per RT #326793. Ward, 2007-01-08.
+ <Files *.php>
+ ForceType text/html
+ </Files>
+
+ # Rewrite rules take precedence over ScriptAlias, so we set up the equivalent
+ # of
+ # ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
+ # by means of a Directory block and a few rewrite rules (ending in 'L' so no
+ # other rewrite rules will be processed).
+ # Ward, 2011-12-23
+
+ <Directory /usr/lib/cgi-bin >
+ Options ExecCGI SymLinksIfOwnerMatch
+ SetHandler cgi-script
+ </Directory>
+
+ RewriteCond %{REQUEST_FILENAME} /cgi-bin/
+ RewriteRule ^/cgi-bin(/.*)$ /usr/lib/cgi-bin$1 [L]
+
+ # For the new directory.
+ # Ward, 2011-09-29
+ RewriteRule ^/rss/quagga.rss$ http://directory.fsf.org/wiki?title=Special:RecentChanges&feed=atom [R=301]
+
+ # Cf #708151. Ward, 2011-09-14
+ RewriteRule ^/doc/termsofsale.html$ http://shop.fsf.org/termsofsale/ [R=301]
+
+ # Cf #697032. Ward, 2011-06-09
+ RewriteRule ^/doc/expanding.html$ http://www.fsf.org/campaigns/gnu-press/book-stores/expanding [R=301]
+ RewriteRule ^/doc/gnupresspub.html$ http://www.fsf.org/campaigns/gnu-press [R=301]
+ RewriteRule ^/doc/contact.html$ http://www.fsf.org/campaigns/gnu-press/contact [R=301]
+ RewriteRule ^/doc/potentialauthors.html$ http://www.fsf.org/campaigns/gnu-press/authors [R=301]
+ RewriteRule ^/doc/teachingprofessionals.html$ http://www.fsf.org/campaigns/gnu-press/teachers [R=301]
+ RewriteRule ^/doc/gnupresslogo.jpg$ http://static.fsf.org/nosvn/gnupresslogo.png [R=301]
+ RewriteRule ^/doc/small-gnupress.png$ http://static.fsf.org/nosvn/gnupresslogo.png [R=301]
+ RewriteRule ^/doc/GNU-Press-styleguide.texi$ http://www.fsf.org/campaigns/gnu-press/GNU-Press-styleguide.texi [R=301]
+ RewriteRule ^/doc/GNU-Press-styleguide.pdf$ http://www.fsf.org/campaigns/gnu-press/GNU-Press-styleguide.pdf [R=301]
+ RewriteRule ^/doc/bibliography.html$ http://www.fsf.org/campaigns/gnu-press/gpl-biblio [R=301]
+
+ # RT# 364396 -- with new FSF store, take gnu pages for it offline
+ RewriteRule ^/gear/.* http://shop.fsf.org/category/gnu-gear/ [R]
+ RewriteRule ^/order/ftp.html http://www.gnu.org/prep/ftp.html [R]
+ RewriteRule ^/order/.* http://shop.fsf.org/ [R]
+
+ # RT#791315
+ RewriteRule ^/software/consensus(/?.*)$ http://gnu.org/consensus$1 [R,L]
+ RewriteRule ^/consensus(/?)$ /software/consensus/consensus.html
+ RewriteRule ^/consensus(/?.*)$ /software/consensus$1
+
+ # See the freesoftware.fsf.org virtual host entry for information
+ RewriteRule ^/non-gnu/(.*)$ http://www.freesoftware.fsf.org/$1 [R,L]
+
+ # Make sure Georg Greve home page is still reachable
+ RewriteRule ^/people/greve/ http://gnuhh.org/ [R,L]
+
+ # Online ordering
+ RewriteRule ^/donate((/.*)?)$ https://www.fsf.org/donate$1 [R,L]
+ RewriteRule ^/prep/mailinglists\.html$ https://lists.gnu.org/mailman/listinfo [R,L]
+ RewriteRule ^/prep/service\.html$ http://www.fsf.org/resources/service [R,L]
+
+ # jag: rt#332934
+ RewriteRule ^/help/donate\.(es\.)?html$ http://donate.fsf.org/ [R,L]
+
+ # Jobs page moved to fsf.org
+ # updated to go to /resources/jobs as per RT #335330 (ward)
+ RewriteRule ^/jobs((/.*)?)$ http://www.fsf.org/resources/jobs$1 [R,L]
+
+ # Redirect fsf pages to the FSF site
+ RewriteRule ^/fsf(/.*)?$ http://www.fsf.org/ [R,L]
+
+ #RewriteEngine on
+ #RewriteLogLevel 3
+ #RewriteLog "/var/log/apache2/rewrite.log"
+
+ # Redirect /software/www to www.gnu.org (RT #604511)
+ RewriteRule ^/software/www/$ http://www.gnu.org/ [R=301]
+ RewriteRule ^/software/www$ http://www.gnu.org/ [R=301]
+
+ # Speedx was renamed gnukart
+ RewriteRule ^/software/speedx(.*)$ http://www.gnu.org/software/gnukart$1 [R=301]
+
+ # tell wget scripts to go away
+ RewriteCond %{HTTP_USER_AGENT} ^Wget.*
+ RewriteRule ^/directory/(.*)$ - [G]
+
+ RewriteRule ^/directory/(.*)$ http://directory.fsf.org/wiki/$1 [R=301]
+ RewriteRule ^/directory$ http://directory.fsf.org/ [R=301]
+ RewriteRule ^/licenses/info/(.*)\.html$ http://directory.fsf.org/license/$1/ [R=301]
+
+ RewriteRule ^/assembly/(.*)$ http://assembly.gnu.org/$1 [R=301]
+ RewriteRule ^/assembly$ http://assembly.gnu.org/ [R=301]
+
+ # DO A BARREL^WRICK ROLL
+
+ RewriteRule ^/usenet/rms-gnusenet.html http://www.internetisseriousbusiness.com/ [R=301]
+ # Special cases for savannah checkouts:
+ RewriteRule ^/brave-gnu-world(.*)$ /software/bravegw$1
+ RewriteRule ^/projects/dotgnu(.*)$ /software/dotgnu$1
+ RewriteRule ^/software/GNUnet(.*)$ /software/gnunet$1 [R=301]
+ # Removed as per RT #369398. Ward, 2008-08-18
+ #RewriteRule ^/education(.*)$ /savannah-checkouts/gnu/education$1
+ RewriteRule ^/software/cp-tools(.*)$ /software/classpath/cp-tools$1 [R=301]
+ RewriteRule ^/software/ac-archive/(.*)$ http://autoconf-archive.cryp.to/$1 [R=301]
+ # jag: RT#255833
+ RewriteRule ^/software/emacs/elisp/(.*)$ /software/emacs/elisp-manual/$1
+ # jag: RT#358525
+ RewriteRule ^/ghm(/?.*)$ /software/ghm$1
+
+ # This has been broken for a long time, apparently. Ward, 2010-11-28
+ RewriteRule ^/copyleft(/.*rdf)$ /licenses/$1
+
+ # This is a weird VLC bug. Ward, 2011-12-21
+ RewriteRule ^/licenses/gpl-2.0.txt/udp/.*$ /licenses/gpl-2.0.txt [R=301]
+
+ ## Removed redirects - RT #535429. Ward, 2010-05-27
+ ##RewriteCond %{REMOTE_ADDR} !74.94.156.210
+ #RewriteRule ^/software/gcc(/.*)$ http://gcc.gnu.org$1
+
+ # At the request of Matt Lee. Ward, 2010-12-05
+ # Removed cf. RT #764846. Ward, 2012-07-09
+ #RewriteRule ^/software/social(.*)$ http://social.foocorp.net/software/social$1
+
+ # This is a consequence of the madness described at
+ # http://cluestick/wiki/Nadesico.gnu.org#.2Fvar.2Fwww.2Fsoftware.2Fgcc and in #535429
+ RewriteRule ^/software/gcc/wiki(/.*)$ http://gcc.gnu.org/wiki$1
+ RewriteRule ^/software/gcc/viewcvs(/.*)$ http://gcc.gnu.org/viewcvs$1
+ RewriteRule ^/software/gcc/onlinedocs(/.*)$ http://gcc.gnu.org/onlinedocs$1
+ RewriteRule ^/software/gcc/ml(/.*)$ http://gcc.gnu.org/ml$1
+ RewriteRule ^/software/gcc/install(/.*)$ http://gcc.gnu.org/install$1
+
+ # Redirect octave ML archives to velveeta.che.wisc.edu (RT #276337)
+
+ RewriteRule ^/software/octave/mailing-lists(.*) http://velveeta.che.wisc.edu/octave/lists$1
+
+ # This redirects every other project to the corresponding cvs checkout
+ RewriteCond /var/www/savannah-checkouts/gnu/$1 -d
+ RewriteRule ^/software/([^/]+)(.*)$ /savannah-checkouts/gnu/$1$2
+
+ # For the translation project webspace (RT #348523). Ward, 2008-08-18
+ RewriteCond /var/www/savannah-checkouts/translations/www-$1 -d
+ RewriteRule ^/server/standards/translations/([^/]+)(.*)$ /savannah-checkouts/translations/www-$1$2
+
+ # Classpath exception wiki. Used to be proxied from
+ RewriteRule ^/licensing/classpath(.*)$ http://developer.classpath.org/licensing$1 [R]
+
+ # Redirect /software/cvs to nongnu.org/cvs (RT #247259)
+ RewriteRule ^/software/cvs((/.*)?)$ http://www.nongnu.org/cvs$1 [R,L]
+
+ RewriteRule ^/events.html$ http://www.fsf.org/events
+
+ # Do not gzip images and files that are already gzipped. See #706271. Ward, 2011-09-28
+ SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png|gz)$ no-gzip dont-vary
+
+ # Multiview support - cf. RT #690688. Ward, 2011-12-21
+
+ # Remap MultiViews-conformant requests to the names of files in a
+ # CVS working copy, namely foo.html for English and foo.${lang}.html
+ # for translations, despite that Apache does not want to support that
+ # by default.
+ #
+ # In the end, http://gnu.org/provide.html and provide.en.html and
+ # provide.html.en should all get the English (actual file: provide.html).
+ # While http://gnu.org/provide.de.html and provide.html.de should get
+ # German (actual file: provide.de.html).
+ #
+ # Convenient command for testing that German is found first:
+ # wget -nv --header "Accept-Language: de;q=0.8, en;q=0.7" \
+ # http://testvhost.org/provide.html
+
+ # Enable SSI for .html one way or another. This is one way:
+ ## Ward - disabled; we do this more selectively above.
+ ##AddOutputFilter INCLUDES .html
+
+ # Because our web site has always used file.LANG.html instead of
+ # file.html.LANG, standard MultiViews does not do what we need.
+ # We have to use mod_rewrite to remap names so MultiViews will
+ # negotiate languages and yet still serve our existing files.
+ # http://httpd.apache.org/docs/current/mod/mod_rewrite.html
+
+ # The *-map.txt files used in these RewriteMap and Include directives are
+ # generated by the update-gnu-rewritemaps script.
+
+ # Apply redirections for external links and directories.
+ # This is an Include instead of a Map because we want things like
+ # www.gnu.org/g to be visibly rewritten to www.gnu.org/graphics.
+ Include /etc/apache2/symlinks/dir-map.txt
+
+ # Redirect requests for non-HTML files (.texi, etc.) whose translations
+ # we don't need to be automatically selected with MultiViews.
+ RewriteMap nonhtml_symlinks txt:/etc/apache2/symlinks/nonhtml-map.txt
+ RewriteRule (.*) ${nonhtml_symlinks:$1|$1}
+
+ # Redirect requests for HTML files (one link fits all translations).
+ RewriteMap html_symlinks txt:/etc/apache2/symlinks/html-map.txt
+ RewriteRule ^(.*)\.en\.html$ ${html_symlinks:$1|$1}.en.html [S=2]
+ RewriteRule ^(.*?)(((\...(-..)?)?\.html)|(\.html(\...(-..)?)))$ \
+ ${html_symlinks:$1|$1}$2 [S=1]
+ # Redirect also extensionless requests.
+ RewriteRule ^(.*)$ ${html_symlinks:$1|$1}
+
+ # Don't localize included files, e.g., the fragments under /server.
+ # This file is generated by the script /server/source/gen-include-file-list.
+ RewriteMap pass_includes txt:/var/www/server/include-file-list.txt
+ RewriteRule ^(.*)\.html$ ${pass_includes:$1|$1}.html
+
+ # Skip MultiViews rewriting if a gzipped file, or ...
+ RewriteCond %{REQUEST_URI} \.gz$ [OR]
+
+ # ... if the file is in a package-specific checkout from savannah.
+ # This includes the gnu.org translation team pages (/translations),
+ # the GNU package pages handled by the maintainers (/gnu),
+ # and the non-GNU packages (/non-gnu).
+ RewriteCond %{REQUEST_FILENAME} /savannah-checkouts/ [OR]
+
+ # ... if the file is in /prep/. We don't translate documentation
+ # there, and some files from /prep/ have the same names as directories.
+ # That would result in Error 404 File Not Found.
+ RewriteCond %{REQUEST_FILENAME} /prep/
+
+ # This no-op rule ends processing if either of the above
+ # RewriteConds are satisfied.
+ RewriteRule (.*) $1 [L]
+
+ # Redirect foo.html.${lang} to foo.${lang}.html,
+ # where ${lang} might have the form aa, or aa-BB.
+ RewriteRule ^(.*)\.html\.(..(-..)?)$ $1.$2.html
+
+ # Redirect foo.en.html to foo.html and skip the next rule for
+ # MultiViews (S=1), since we now know what file we want.
+ RewriteRule ^(.*)\.en\.html$ $1.html [S=1]
+
+ # Redirect foo.html to foo.
+ # After this redirection, MultiViews should take over.
+ RewriteCond %{REQUEST_FILENAME} !(\...(-..)?\.html)$
+ RewriteRule ^(.*)\.html$ $1
+
+ # Prevent Apache from interpreting the result
+ # as a local filesystem path, e.g., "/home".
+ RewriteRule ^(/.*)$ %{DOCUMENT_ROOT}$1