AliasMatch /Photos/$ {{ docroot }}/Photos/index.html
#+END_SRC
+** Configure Matt's Alter Ego
+
+Many years ago Matt's evil twin, Friar Puck, released a "pucked"
+version of MIT/GNU Scheme, advertising that it was available at a
+couple URLs:
+
+- ~git://birchwood-abbey.net/~puck/mit-scheme.git~
+- ~https://birchwood-abbey.net/~puck/Scheme/~
+
+These are actually duplicates of the "resources" at these URLs:
+
+- ~git://birchwood-abbey.net/~matt/mit-scheme.git~
+- ~https://birchwood-abbey.net/~matt/Scheme/~
+
+So the abbey's Google Indexing report warned of the duplicates, and
+explained that they would not be indexed. To get them off the report,
+the following redirects make clear that the canonical source is
+Matt's.
+
+#+NAME: apache-pucked
+#+CAPTION: ~apache-pucked~
+#+BEGIN_SRC conf
+RedirectMatch /~puck$ /~matt
+RedirectMatch /~puck/(.*) /~matt/$1
+#+END_SRC
+
+The seemingly duplicated Git repository at ~/~puck/mit-scheme.git~ is
+actually the symbolic link at =/home/puck/Public= targeting
+=/home/matt/Public=.
+
** Configure Tellurion Expiration on Front
The abbey's =tellurion.png= is updated every 15 minutes on the quarter
=/etc/apache2/sites-available/=.
The following task adds the [[apache-gitweb][~apache-gitweb~]], [[apache-abbey][~apache-abbey~]],
-[[apache-photos][~apache-photos~]], and [[apache-tellurion][~apache-tellurion~]] directives described above to
-the =-vhost.conf= file, and includes =options-ssl-apache.conf= from
-=/etc/letsencrypt/=. The rest of the Let's Encrypt configuration is
-discussed in the following [[*Install Let's Encrypt][Install Let's Encrypt]] section.
+[[apache-photos][~apache-photos~]], [[apache-pucked][~apache-pucked~]] and [[apache-tellurion][~apache-tellurion~]] directives
+described above to the =-vhost.conf= file, and includes
+=options-ssl-apache.conf= from =/etc/letsencrypt/=. The rest of the
+Let's Encrypt configuration is discussed in the following [[*Install Let's Encrypt][Install
+Let's Encrypt]] section.
#+CAPTION: [[file:roles_t/abbey-front/tasks/main.yml][=roles_t/abbey-front/tasks/main.yml=]]
#+BEGIN_SRC conf :tangle roles_t/abbey-front/tasks/main.yml :noweb no-export
<<apache-photos>>
+ <<apache-pucked>>
+
<<apache-tellurion>>
IncludeOptional /etc/letsencrypt/options-ssl-apache.conf
The Apache2 configuration on Core specifies three web sites (live,
test, and campus). The live and test sites must operate just like the
site on Front. Their configurations include the same [[apache-gitweb][~apache-gitweb~]],
-[[apache-abbey][~apache-abbey~]], [[apache-photos][~apache-photos~]], and [[apache-tellurion][~apache-tellurion~]] used on Front.
+[[apache-abbey][~apache-abbey~]], [[apache-photos][~apache-photos~]], [[apache-pucked][~apache-pucked~]] and
+[[apache-tellurion][~apache-tellurion~]] directives used on Front.
#+CAPTION: [[file:roles_t/abbey-core/tasks/main.yml][=roles_t/abbey-core/tasks/main.yml=]]
#+BEGIN_SRC conf :tangle roles_t/abbey-core/tasks/main.yml :noweb no-export
<<apache-photos>>
+ <<apache-pucked>>
+
<<apache-tellurion>>
dest: /etc/apache2/sites-available/live-vhost.conf
mode: u=rw,g=r,o=r
<<apache-photos>>
+ <<apache-pucked>>
+
<<apache-tellurion>>
dest: /etc/apache2/sites-available/test-vhost.conf
mode: u=rw,g=r,o=r
{{ docroot }}/Photos/$1/$2/$3/index.html
AliasMatch /Photos/$ {{ docroot }}/Photos/index.html
+ RedirectMatch /~puck$ /~matt
+ RedirectMatch /~puck/(.*) /~matt/$1
+
<Directory {{ docroot }}/Tellurion/>
ExpiresActive On
ExpiresByType image/png "modification plus 15 minutes"
{{ docroot }}/Photos/$1/$2/$3/index.html
AliasMatch /Photos/$ {{ docroot }}/Photos/index.html
+ RedirectMatch /~puck$ /~matt
+ RedirectMatch /~puck/(.*) /~matt/$1
+
<Directory {{ docroot }}/Tellurion/>
ExpiresActive On
ExpiresByType image/png "modification plus 15 minutes"