Fossil SCM

Fix typo in OpenBSD documentation httpd link, remove block quote formatting, and make section titles consistent with existing server docs.

jamsek 2020-06-22 13:43 trunk
Commit a9cc104eb33ed52a9e2327d79f0fbb31fe8ef88d93474e9b5b569f8faa7dd884
1 file changed +11 -11
--- www/server/openbsd/httpd.md
+++ www/server/openbsd/httpd.md
@@ -10,13 +10,13 @@
1010
a single directory within a chroot, and allow ``ssh`` access to create
1111
new repositories remotely.
1212
1313
**NOTE:** The following instructions assume an OpenBSD 6.7 installation.
1414
15
-[httpd]: https://www.openbsd.org/papers/httpd-asiabsdcon2015.pdfBPSystemStartup/
15
+[httpd]: https://www.openbsd.org/papers/httpd-asiabsdcon2015.pdf
1616
17
-## [Install Fossil](#fslinstall)
17
+## <a name="fslinstall"></a>Install Fossil
1818
1919
Use the OpenBSD package manager ``pkg_add`` to install Fossil, making
2020
sure to select the statically linked binary.
2121
2222
```console
@@ -59,11 +59,11 @@
5959
$ doas mkdir /var/www/htdocs/fsl.domain.tld
6060
$ doas touch /var/www/logs/fossil.log
6161
$ doas chmod 755 /var/www/cgi-bin/scm
6262
```
6363
64
-## [Setup chroot](#chroot)
64
+## <a name="chroot"></a>Setup chroot
6565
6666
Fossil needs both ``/dev/random`` and ``/dev/null``, which aren't
6767
accessible from within the chroot, so need to be constructed; ``/var``,
6868
however, is mounted with the ``nodev`` option. Rather than removing
6969
this default setting, create a small memory filesystem with
@@ -100,11 +100,11 @@
100100
101101
```console
102102
$ doas chown -R user:www /var/www/htdocs/fsl.domain.tld
103103
```
104104
105
-## [Configure httpd](#httpdconfig)
105
+## <a name="httpdconfig"></a>Configure httpd
106106
107107
On OpenBSD, [httpd.conf(5)][httpd] is the configuration file for
108108
``httpd``. To setup the server to serve all Fossil repositores within
109109
the directory specified in the CGI script, and automatically redirect
110110
standard HTTP requests to HTTPS—apart from [Let's Encrypt][LE]
@@ -154,16 +154,16 @@
154154
request strip 2
155155
}
156156
}
157157
```
158158
159
-> If not already in possession of a HTTPS certificate, comment out the
160
-> ``https`` server block and proceed to securing a free
161
-> [Let's Encrypt Certificate](#letsencrypt); otherwise skip to
162
-> [Start httpd](#starthttpd).
159
+**NOTE:** If not already in possession of a HTTPS certificate, comment
160
+out the ``https`` server block and proceed to securing a free
161
+[Let's Encrypt Certificate](#letsencrypt); otherwise skip to
162
+[Start httpd](#starthttpd).
163163
164
-## [Let's Encrypt Certificate](#letsencrypt)
164
+## <a name="letsencrypt"></a>Let's Encrypt Certificate
165165
166166
In order for ``httpd`` to serve HTTPS, secure a free certificate from
167167
Let's Encrypt using ``acme-client``. Before issuing the
168168
request, however, ensure you have a zone record for the subdomain with
169169
your registrar or nameserver. Then open ``/etc/acme-client.conf`` as a
@@ -218,11 +218,11 @@
218218
```
219219
220220
Make sure to reopen ``/etc/httpd.conf`` to uncomment the second server
221221
block responsible for serving HTTPS requests before proceeding.
222222
223
-## [Start httpd](#starthttpd)
223
+## <a name="starthttpd"></a>Start httpd
224224
225225
With ``httpd`` configured to serve Fossil repositories out of
226226
``/var/www/htdocs/fsl.domain.tld``, and the certificates and key in
227227
place, enable and start ``slowcgi``—OpenBSD's FastCGI wrapper server
228228
that will execute the above Fossil CGI script—before checking the syntax
@@ -237,11 +237,11 @@
237237
configuration OK
238238
$ doas rcctl start httpd
239239
httpd(ok)
240240
```
241241
242
-## [Configure Client](#clientconfig)
242
+## <a name="clientconfig"></a>Configure Client
243243
244244
To facilitate creating new repositories and pushing them to the server,
245245
add the following function to your ``~/.cshrc`` or ``~/.zprofile`` or
246246
the config file for whichever shell you are using on your development
247247
box.
248248
--- www/server/openbsd/httpd.md
+++ www/server/openbsd/httpd.md
@@ -10,13 +10,13 @@
10 a single directory within a chroot, and allow ``ssh`` access to create
11 new repositories remotely.
12
13 **NOTE:** The following instructions assume an OpenBSD 6.7 installation.
14
15 [httpd]: https://www.openbsd.org/papers/httpd-asiabsdcon2015.pdfBPSystemStartup/
16
17 ## [Install Fossil](#fslinstall)
18
19 Use the OpenBSD package manager ``pkg_add`` to install Fossil, making
20 sure to select the statically linked binary.
21
22 ```console
@@ -59,11 +59,11 @@
59 $ doas mkdir /var/www/htdocs/fsl.domain.tld
60 $ doas touch /var/www/logs/fossil.log
61 $ doas chmod 755 /var/www/cgi-bin/scm
62 ```
63
64 ## [Setup chroot](#chroot)
65
66 Fossil needs both ``/dev/random`` and ``/dev/null``, which aren't
67 accessible from within the chroot, so need to be constructed; ``/var``,
68 however, is mounted with the ``nodev`` option. Rather than removing
69 this default setting, create a small memory filesystem with
@@ -100,11 +100,11 @@
100
101 ```console
102 $ doas chown -R user:www /var/www/htdocs/fsl.domain.tld
103 ```
104
105 ## [Configure httpd](#httpdconfig)
106
107 On OpenBSD, [httpd.conf(5)][httpd] is the configuration file for
108 ``httpd``. To setup the server to serve all Fossil repositores within
109 the directory specified in the CGI script, and automatically redirect
110 standard HTTP requests to HTTPS—apart from [Let's Encrypt][LE]
@@ -154,16 +154,16 @@
154 request strip 2
155 }
156 }
157 ```
158
159 > If not already in possession of a HTTPS certificate, comment out the
160 > ``https`` server block and proceed to securing a free
161 > [Let's Encrypt Certificate](#letsencrypt); otherwise skip to
162 > [Start httpd](#starthttpd).
163
164 ## [Let's Encrypt Certificate](#letsencrypt)
165
166 In order for ``httpd`` to serve HTTPS, secure a free certificate from
167 Let's Encrypt using ``acme-client``. Before issuing the
168 request, however, ensure you have a zone record for the subdomain with
169 your registrar or nameserver. Then open ``/etc/acme-client.conf`` as a
@@ -218,11 +218,11 @@
218 ```
219
220 Make sure to reopen ``/etc/httpd.conf`` to uncomment the second server
221 block responsible for serving HTTPS requests before proceeding.
222
223 ## [Start httpd](#starthttpd)
224
225 With ``httpd`` configured to serve Fossil repositories out of
226 ``/var/www/htdocs/fsl.domain.tld``, and the certificates and key in
227 place, enable and start ``slowcgi``—OpenBSD's FastCGI wrapper server
228 that will execute the above Fossil CGI script—before checking the syntax
@@ -237,11 +237,11 @@
237 configuration OK
238 $ doas rcctl start httpd
239 httpd(ok)
240 ```
241
242 ## [Configure Client](#clientconfig)
243
244 To facilitate creating new repositories and pushing them to the server,
245 add the following function to your ``~/.cshrc`` or ``~/.zprofile`` or
246 the config file for whichever shell you are using on your development
247 box.
248
--- www/server/openbsd/httpd.md
+++ www/server/openbsd/httpd.md
@@ -10,13 +10,13 @@
10 a single directory within a chroot, and allow ``ssh`` access to create
11 new repositories remotely.
12
13 **NOTE:** The following instructions assume an OpenBSD 6.7 installation.
14
15 [httpd]: https://www.openbsd.org/papers/httpd-asiabsdcon2015.pdf
16
17 ## <a name="fslinstall"></a>Install Fossil
18
19 Use the OpenBSD package manager ``pkg_add`` to install Fossil, making
20 sure to select the statically linked binary.
21
22 ```console
@@ -59,11 +59,11 @@
59 $ doas mkdir /var/www/htdocs/fsl.domain.tld
60 $ doas touch /var/www/logs/fossil.log
61 $ doas chmod 755 /var/www/cgi-bin/scm
62 ```
63
64 ## <a name="chroot"></a>Setup chroot
65
66 Fossil needs both ``/dev/random`` and ``/dev/null``, which aren't
67 accessible from within the chroot, so need to be constructed; ``/var``,
68 however, is mounted with the ``nodev`` option. Rather than removing
69 this default setting, create a small memory filesystem with
@@ -100,11 +100,11 @@
100
101 ```console
102 $ doas chown -R user:www /var/www/htdocs/fsl.domain.tld
103 ```
104
105 ## <a name="httpdconfig"></a>Configure httpd
106
107 On OpenBSD, [httpd.conf(5)][httpd] is the configuration file for
108 ``httpd``. To setup the server to serve all Fossil repositores within
109 the directory specified in the CGI script, and automatically redirect
110 standard HTTP requests to HTTPS—apart from [Let's Encrypt][LE]
@@ -154,16 +154,16 @@
154 request strip 2
155 }
156 }
157 ```
158
159 **NOTE:** If not already in possession of a HTTPS certificate, comment
160 out the ``https`` server block and proceed to securing a free
161 [Let's Encrypt Certificate](#letsencrypt); otherwise skip to
162 [Start httpd](#starthttpd).
163
164 ## <a name="letsencrypt"></a>Let's Encrypt Certificate
165
166 In order for ``httpd`` to serve HTTPS, secure a free certificate from
167 Let's Encrypt using ``acme-client``. Before issuing the
168 request, however, ensure you have a zone record for the subdomain with
169 your registrar or nameserver. Then open ``/etc/acme-client.conf`` as a
@@ -218,11 +218,11 @@
218 ```
219
220 Make sure to reopen ``/etc/httpd.conf`` to uncomment the second server
221 block responsible for serving HTTPS requests before proceeding.
222
223 ## <a name="starthttpd"></a>Start httpd
224
225 With ``httpd`` configured to serve Fossil repositories out of
226 ``/var/www/htdocs/fsl.domain.tld``, and the certificates and key in
227 place, enable and start ``slowcgi``—OpenBSD's FastCGI wrapper server
228 that will execute the above Fossil CGI script—before checking the syntax
@@ -237,11 +237,11 @@
237 configuration OK
238 $ doas rcctl start httpd
239 httpd(ok)
240 ```
241
242 ## <a name="clientconfig"></a>Configure Client
243
244 To facilitate creating new repositories and pushing them to the server,
245 add the following function to your ``~/.cshrc`` or ``~/.zprofile`` or
246 the config file for whichever shell you are using on your development
247 box.
248

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button