Took out obsolete instructions for configuring a Raspberry Pi.
#+NAME: apache-gitweb
#+CAPTION: ~apache-gitweb~
#+BEGIN_SRC conf
-
Alias /gitweb-static/ /usr/share/gitweb/static/
<Directory "/usr/share/gitweb/static/">
Options MultiViews
#+NAME: gitweb-tasks
#+CAPTION: ~gitweb-tasks~
#+BEGIN_SRC conf
-- name: Enable Apache2 rewrite module for Gitweb.
+- name: Enable Apache2 rewrite module.
become: yes
apache2_module: name=rewrite
notify: Restart Apache2.
apache2_module: name=cgid
notify: Restart Apache2.
-- name: Install libcgi-pm-perl for Gitweb.
+- name: Install libcgi-pm-perl.
become: yes
apt: pkg=libcgi-pm-perl
#+NAME: apache-photos
#+CAPTION: ~apache-photos~
#+BEGIN_SRC conf
-
RedirectMatch /Photos$ /Photos/
RedirectMatch /Photos/(20[0-9][0-9])_([0-9][0-9])_([0-9][0-9])$ \
/Photos/$1_$2_$3/
docroot: /home/www
copy:
content: |
+ <<apache-gitweb>>
+
<<apache-abbey>>
+
<<apache-photos>>
- <<apache-gitweb>>
IncludeOptional /etc/letsencrypt/options-ssl-apache.conf
dest: /etc/apache2/sites-available/birchwood-abbey.net-vhost.conf
docroot: /WWW/live
copy:
content: |
+ <<apache-gitweb>>
+
<<apache-abbey>>
+
<<apache-photos>>
- <<apache-gitweb>>
dest: /etc/apache2/sites-available/live-vhost.conf
mode: u=rw,g=r,o=r
notify: Restart Apache2.
docroot: /WWW/test
copy:
content: |
+ <<apache-gitweb>>
+
<<apache-abbey>>
+
<<apache-photos>>
- <<apache-gitweb>>
dest: /etc/apache2/sites-available/test-vhost.conf
mode: u=rw,g=r,o=r
notify: Restart Apache2.
<Directory /usr/share/doc/>
Options Indexes
</Directory>
+
<<apache-gitweb>>
dest: /etc/apache2/sites-available/www-vhost.conf
mode: u=rw,g=r,o=r
- Right click on the desktop (background) and choose Preferences. In
the Control Centre choose Interfaces in the left side bar and toggle
SSH on.
-
-- Run ~sudo raspi-config~ and use the following menu items.
- + S4 Hostname (Set name for this computer on a network): new
- + I1 SSH (Enable/disable remote command line access using SSH): enable
- + A1 Expand Filesystem (Ensures that all of the SD card is available)
- [[*Update From Cloister Apt Cache][Update From Cloister Apt Cache]]
- [[*Authorize Remote Administration][Authorize Remote Administration]]
- [[*Configure with Ansible][Configure with Ansible]]
service: git-daemon
enabled: yes
-- name: Enable Apache2 rewrite module for Gitweb.
+- name: Enable Apache2 rewrite module.
become: yes
apache2_module: name=rewrite
notify: Restart Apache2.
apache2_module: name=cgid
notify: Restart Apache2.
-- name: Install libcgi-pm-perl for Gitweb.
+- name: Install libcgi-pm-perl.
become: yes
apt: pkg=libcgi-pm-perl
docroot: /WWW/live
copy:
content: |
+ Alias /gitweb-static/ /usr/share/gitweb/static/
+ <Directory "/usr/share/gitweb/static/">
+ Options MultiViews
+ </Directory>
+ RewriteEngine on
+ RewriteRule ^/git(/.*)?$ \
+ /cgi-bin/gitweb.cgi$1 [QSA,L,PT]
+ RewriteRule ^/\~([^\/]+)/git(/.*)?$ \
+ /cgi-bin/gitweb.cgi$2 \
+ [QSA,E=GITWEB_PROJECTROOT:/home/$1/Public/Git/,L,PT]
+
<Directory {{ docroot }}/Abbey/>
AllowOverride Indexes FileInfo
Options +Indexes +FollowSymLinks
</Directory>
-
+
RedirectMatch /Photos$ /Photos/
RedirectMatch /Photos/(20[0-9][0-9])_([0-9][0-9])_([0-9][0-9])$ \
/Photos/$1_$2_$3/
AliasMatch /Photos/(20[0-9][0-9])_([0-9][0-9])_([0-9][0-9])/$ \
{{ docroot }}/Photos/$1/$2/$3/index.html
AliasMatch /Photos/$ {{ docroot }}/Photos/index.html
-
+ dest: /etc/apache2/sites-available/live-vhost.conf
+ mode: u=rw,g=r,o=r
+ notify: Restart Apache2.
+
+- name: Configure test website.
+ become: yes
+ vars:
+ docroot: /WWW/test
+ copy:
+ content: |
Alias /gitweb-static/ /usr/share/gitweb/static/
<Directory "/usr/share/gitweb/static/">
Options MultiViews
RewriteRule ^/\~([^\/]+)/git(/.*)?$ \
/cgi-bin/gitweb.cgi$2 \
[QSA,E=GITWEB_PROJECTROOT:/home/$1/Public/Git/,L,PT]
- dest: /etc/apache2/sites-available/live-vhost.conf
- mode: u=rw,g=r,o=r
- notify: Restart Apache2.
-- name: Configure test website.
- become: yes
- vars:
- docroot: /WWW/test
- copy:
- content: |
<Directory {{ docroot }}/Abbey/>
AllowOverride Indexes FileInfo
Options +Indexes +FollowSymLinks
</Directory>
-
+
RedirectMatch /Photos$ /Photos/
RedirectMatch /Photos/(20[0-9][0-9])_([0-9][0-9])_([0-9][0-9])$ \
/Photos/$1_$2_$3/
AliasMatch /Photos/(20[0-9][0-9])_([0-9][0-9])_([0-9][0-9])/$ \
{{ docroot }}/Photos/$1/$2/$3/index.html
AliasMatch /Photos/$ {{ docroot }}/Photos/index.html
-
- Alias /gitweb-static/ /usr/share/gitweb/static/
- <Directory "/usr/share/gitweb/static/">
- Options MultiViews
- </Directory>
- RewriteEngine on
- RewriteRule ^/git(/.*)?$ \
- /cgi-bin/gitweb.cgi$1 [QSA,L,PT]
- RewriteRule ^/\~([^\/]+)/git(/.*)?$ \
- /cgi-bin/gitweb.cgi$2 \
- [QSA,E=GITWEB_PROJECTROOT:/home/$1/Public/Git/,L,PT]
dest: /etc/apache2/sites-available/test-vhost.conf
mode: u=rw,g=r,o=r
notify: Restart Apache2.
<Directory /usr/share/doc/>
Options Indexes
</Directory>
-
+
Alias /gitweb-static/ /usr/share/gitweb/static/
<Directory "/usr/share/gitweb/static/">
Options MultiViews
service: git-daemon
enabled: yes
-- name: Enable Apache2 rewrite module for Gitweb.
+- name: Enable Apache2 rewrite module.
become: yes
apache2_module: name=rewrite
notify: Restart Apache2.
apache2_module: name=cgid
notify: Restart Apache2.
-- name: Install libcgi-pm-perl for Gitweb.
+- name: Install libcgi-pm-perl.
become: yes
apt: pkg=libcgi-pm-perl
docroot: /home/www
copy:
content: |
+ Alias /gitweb-static/ /usr/share/gitweb/static/
+ <Directory "/usr/share/gitweb/static/">
+ Options MultiViews
+ </Directory>
+ RewriteEngine on
+ RewriteRule ^/git(/.*)?$ \
+ /cgi-bin/gitweb.cgi$1 [QSA,L,PT]
+ RewriteRule ^/\~([^\/]+)/git(/.*)?$ \
+ /cgi-bin/gitweb.cgi$2 \
+ [QSA,E=GITWEB_PROJECTROOT:/home/$1/Public/Git/,L,PT]
+
<Directory {{ docroot }}/Abbey/>
AllowOverride Indexes FileInfo
Options +Indexes +FollowSymLinks
</Directory>
-
+
RedirectMatch /Photos$ /Photos/
RedirectMatch /Photos/(20[0-9][0-9])_([0-9][0-9])_([0-9][0-9])$ \
/Photos/$1_$2_$3/
AliasMatch /Photos/(20[0-9][0-9])_([0-9][0-9])_([0-9][0-9])/$ \
{{ docroot }}/Photos/$1/$2/$3/index.html
AliasMatch /Photos/$ {{ docroot }}/Photos/index.html
-
- Alias /gitweb-static/ /usr/share/gitweb/static/
- <Directory "/usr/share/gitweb/static/">
- Options MultiViews
- </Directory>
- RewriteEngine on
- RewriteRule ^/git(/.*)?$ \
- /cgi-bin/gitweb.cgi$1 [QSA,L,PT]
- RewriteRule ^/\~([^\/]+)/git(/.*)?$ \
- /cgi-bin/gitweb.cgi$2 \
- [QSA,E=GITWEB_PROJECTROOT:/home/$1/Public/Git/,L,PT]
IncludeOptional /etc/letsencrypt/options-ssl-apache.conf
dest: /etc/apache2/sites-available/birchwood-abbey.net-vhost.conf