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
14 RewriteCond %{HTTPS} !=on
15 RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
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
31 ServerName www.defectivebydesign.org
32 ServerAdmin webmaster@fsf.org
36 # <configure some basic server parameters>
37 # Possible values include: debug, info, notice, warn, error, crit,
43 # if we have mod_status, use it
44 <IfModule mod_status.c>
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.
51 <Location /server-status>
52 SetHandler server-status
53 Require host 127.0.0.1 74.94.156.210
57 # <redirects/shortenings of URLs>
58 Redirect ^/amazon-kindle-swindle\. /amazon-kindle-swindle
59 Redirect /day http://www.defectivebydesign.org/dayagainstdrm/2019
60 Redirect ^/dayagainstdrm/?$ http://www.defectivebydesign.org/dayagainstdrm/2019
61 RedirectPermanent /node/9 /join
62 RedirectPermanent /feed.xml /rss.xml
64 # Cf. RT #716003. Ward, 2011-11-30
65 RedirectPermanent /user/register https://crm.fsf.org/civicrm/profile/create?gid=36&reset=1
67 # Cf. RT #839159. Ward, 2013-07-09
68 RedirectPermanent /what_is_drm http://www.defectivebydesign.org/what_is_drm_digital_restrictions_management
70 #k054 RT #1044876 2015-09-09
71 RedirectPermanent /donate https://my.fsf.org/civicrm/contribute/transact?reset=1&id=40
72 RedirectPermanent /no-drm-in-html5 https://my.fsf.org/civicrm/profile/create?gid=183&reset=1
74 # broken links to /en/printable, etc
76 RewriteRule ^/en/(.*) /$1 [R]
79 # <I think this is for security? idk why we would be messing with / when our webroot is /var/www/html>
80 # I'm just an intern, fiddling with code written before I could `echo Hello World`
81 # - Eostre, 2020-08-04
83 Options FollowSymLinks
88 # <add CGI scripts shipping by our distro>
89 ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
90 <Directory "/usr/lib/cgi-bin">
92 Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
97 # <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>
98 Alias /doc/ "/usr/share/doc/"
99 <Directory "/usr/share/doc/">
100 Options Indexes MultiViews FollowSymLinks
102 Require host 127.0.0.0/255.0.0.0 ::1/128
104 # </share/doc fuckery>
106 # <manage caching: sets the Expires and Cache-Control headers so that clients know when to use their cache vs. when to refetch a resource>
107 <FilesMatch "\.(ico|pdf|jpe?g|png|gif|js|css)$">
109 ExpiresDefault "access plus 1 month"
114 ExpiresDefault "access plus 5 minutes"