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 /day http://www.defectivebydesign.org/dayagainstdrm/2019
59 Redirect ^/dayagainstdrm/?$ http://www.defectivebydesign.org/dayagainstdrm/2019
60 RedirectPermanent /node/9 /join
61 RedirectPermanent /feed.xml /rss.xml
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
66 Redirect ^/amazon-kindle-swindle\. /amazon-kindle-swindle
67 Redirect ^/amazon_kindle_swindle\. /amazon-kindle-swindle
68 Redirect ^/kindle-swindle\. /amazon-kindle-swindle
69 Redirect ^/kindle_swindle\. /amazon-kindle-swindle
71 # Cf. RT #716003. Ward, 2011-11-30
72 RedirectPermanent /user/register https://crm.fsf.org/civicrm/profile/create?gid=36&reset=1
74 # Cf. RT #839159. Ward, 2013-07-09
75 RedirectPermanent /what-is-drm http://www.defectivebydesign.org/what_is_drm_digital_restrictions_management
76 RedirectPermanent /what_is_drm http://www.defectivebydesign.org/what_is_drm_digital_restrictions_management
78 #k054 RT #1044876 2015-09-09
79 RedirectPermanent /donate https://my.fsf.org/civicrm/contribute/transact?reset=1&id=40
80 RedirectPermanent /no-drm-in-html5 https://my.fsf.org/civicrm/profile/create?gid=183&reset=1
81 RedirectPermanent /no-drm-in-html-5 https://my.fsf.org/civicrm/profile/create?gid=183&reset=1
82 RedirectPermanent /no_drm_in_html5 https://my.fsf.org/civicrm/profile/create?gid=183&reset=1
83 RedirectPermanent /no_drm_in_html_5 https://my.fsf.org/civicrm/profile/create?gid=183&reset=1
85 # broken links to /en/printable, etc
87 RewriteRule ^/en/(.*) /$1 [R]
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
94 Options FollowSymLinks
99 # <add CGI scripts shipping by our distro>
100 ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
101 <Directory "/usr/lib/cgi-bin">
103 Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
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>
109 Alias /doc/ "/usr/share/doc/"
110 <Directory "/usr/share/doc/">
111 Options Indexes MultiViews FollowSymLinks
113 Require host 127.0.0.0/255.0.0.0 ::1/128
115 # </share/doc fuckery>
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)$">
120 ExpiresDefault "access plus 1 month"
125 ExpiresDefault "access plus 5 minutes"