genericifying the drupal7 autobuild
[eostre.git] / drupal-automake-generic / conf / dbd.conf
CommitLineData
8b2413e8 1# <aliases for dbd>
2<VirtualHost *:80>
3 ServerName www0.defectivebydesign.org
4 ServerAlias www.defectivebydesign.org
5 ServerAlias defectivebydesign.com
6 ServerAlias defectivebydesign.net
7 ServerAlias www.defectivebydesign.com
8 ServerAlias www.defectivebydesign.net
9 ServerAlias dbd.fsf.org
10 ServerAlias defectivebydesign.org
11 ServerAdmin webmaster@fsf.org
12 ### redirect to same domain name, but HTTPS. required for HSTS
13 RewriteEngine On
14 RewriteCond %{HTTPS} !=on
15 RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
16</VirtualHost>
17
18<VirtualHost *:443>
19 ServerName www0.defectivebydesign.org
20 ServerAlias defectivebydesign.com
21 ServerAlias defectivebydesign.net
22 ServerAlias www.defectivebydesign.com
23 ServerAlias www.defectivebydesign.net
24 ServerAlias dbd.fsf.org
25 ServerAlias defectivebydesign.org
26 ServerAdmin webmaster@fsf.org
27 RedirectMatch permanent (.*) https://www.defectivebydesign.org$1
28</VirtualHost>
29
30<VirtualHost *:443>
31 ServerName www.defectivebydesign.org
32 ServerAdmin webmaster@fsf.org
33</VirtualHost>
34# </aliases>
35
36# <configure some basic server parameters>
37# Possible values include: debug, info, notice, warn, error, crit,
38# alert, emerg.
39LogLevel warn
40ServerSignature On
41# </basic params>
42
43# if we have mod_status, use it
44<IfModule mod_status.c>
45 #
46 # Allow server status reports generated by mod_status,
47 # with the URL of http://servername/server-status
48 # Uncomment and change the ".example.com" to allow
49 # access from other hosts.
50 #
51 <Location /server-status>
52 SetHandler server-status
53 Require host 127.0.0.1 74.94.156.210
54 </Location>
55</IfModule>
56
57# <redirects/shortenings of URLs>
58Redirect /day http://www.defectivebydesign.org/dayagainstdrm/2019
59Redirect ^/dayagainstdrm/?$ http://www.defectivebydesign.org/dayagainstdrm/2019
60RedirectPermanent /node/9 /join
61RedirectPermanent /feed.xml /rss.xml
62
63# we can't seem to standardize on using underscores or hyphens, so we're going to use both
64# we can probably have apache use regex for this, I'll investigate that next
65# - Eostre, 2020-08-04
66Redirect ^/amazon-kindle-swindle\. /amazon-kindle-swindle
67Redirect ^/amazon_kindle_swindle\. /amazon-kindle-swindle
68Redirect ^/kindle-swindle\. /amazon-kindle-swindle
69Redirect ^/kindle_swindle\. /amazon-kindle-swindle
70
71# Cf. RT #716003. Ward, 2011-11-30
72RedirectPermanent /user/register https://crm.fsf.org/civicrm/profile/create?gid=36&reset=1
73
74# Cf. RT #839159. Ward, 2013-07-09
75RedirectPermanent /what-is-drm http://www.defectivebydesign.org/what_is_drm_digital_restrictions_management
76RedirectPermanent /what_is_drm http://www.defectivebydesign.org/what_is_drm_digital_restrictions_management
77
78#k054 RT #1044876 2015-09-09
79RedirectPermanent /donate https://my.fsf.org/civicrm/contribute/transact?reset=1&id=40
80RedirectPermanent /no-drm-in-html5 https://my.fsf.org/civicrm/profile/create?gid=183&reset=1
81RedirectPermanent /no-drm-in-html-5 https://my.fsf.org/civicrm/profile/create?gid=183&reset=1
82RedirectPermanent /no_drm_in_html5 https://my.fsf.org/civicrm/profile/create?gid=183&reset=1
83RedirectPermanent /no_drm_in_html_5 https://my.fsf.org/civicrm/profile/create?gid=183&reset=1
84
85# broken links to /en/printable, etc
86# Ward, 2010-01-28
87RewriteRule ^/en/(.*) /$1 [R]
88# </redirects>
89
90# <I think this is for security? idk why we would be messing with / when our webroot is /var/www/html>
91# I'm just an intern, fiddling with code written before I could `echo Hello World`
92# - Eostre, 2020-08-04
93<Directory />
94 Options FollowSymLinks
95 AllowOverride None
96</Directory>
97# </weird stuff>
98
99# <add CGI scripts shipping by our distro>
100ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
101<Directory "/usr/lib/cgi-bin">
102 AllowOverride None
103 Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
104 Require all granted
105</Directory>
106# </cgi>
107
108# <allow us to access usr/share/doc over HTTP, but only from localhost, e.g. allow us to use an SSH tunnel to access it>
109Alias /doc/ "/usr/share/doc/"
110<Directory "/usr/share/doc/">
111 Options Indexes MultiViews FollowSymLinks
112 AllowOverride None
113 Require host 127.0.0.0/255.0.0.0 ::1/128
114</Directory>
115# </share/doc fuckery>
116
117# <manage caching: sets the Expires and Cache-Control headers so that clients know when to use their cache vs. when to refetch a resource>
118<FilesMatch "\.(ico|pdf|jpe?g|png|gif|js|css)$">
119 ExpiresActive On
120 ExpiresDefault "access plus 1 month"
121</FilesMatch>
122
123<FilesMatch ".*">
124 ExpiresActive On
125 ExpiresDefault "access plus 5 minutes"
126</FilesMatch>
127# </caching>