More http -> https.

This commit is contained in:
kristapsdz committed 2018-01-18 08:09:42 +00:00
1 parent 8c2965775c
commit 494c255203
5 files changed
+11 -11

No files matched your search

+1 -1
View File
@@ -43,7 +43,7 @@
<p>
The usual solution for this is to pre-allocate workers and simply fail on resource exhaustion: when the web server tries
connecting to a saturated transport socket, it fails and the request is rejected by the web server.
This is the method used by <a href="http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man8/httpd.8">httpd(8)</a> and other
This is the method used by <a href="https://man.openbsd.org/httpd.8">httpd(8)</a> and other
servers when using the <q>external process</q> mode.
Obviously, this is sub-optimal.
Many web servers address this by acting themselves as managers.
+1 -1
View File
@@ -40,7 +40,7 @@
<a href="snapshots/kcgi.tgz.sha512"><i class="fa fa-fw fa-lock"></i></a>
<a href="snapshots"><i class="fa fa-fw fa-archive"></i></a>
<a href="https://www.github.com/kristapsdz/kcgi"><i class="fa fa-fw fa-github"></i></a>
<span>Built with <a href="https://kristaps.bsd.lv/sblg">sblg</a> on <a href="http://www.openbsd.org">OpenBSD</a></span>
<span>Built with <a href="https://kristaps.bsd.lv/sblg">sblg</a> on <a href="https://www.openbsd.org">OpenBSD</a></span>
</div>
</footer>
</body>
+6 -6
View File
@@ -222,8 +222,8 @@ const char *const pages[PAGE__MAX] = {
</h3>
<p>
Installation steps depends on your operating system, web server, and a thousand other factors.
I'll stick with the simplest installation using the defaults of <a href="http://www.openbsd.org">OpenBSD</a> with the default
web server <a href="http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man8/httpd.8">httpd(8)</a>.
I'll stick with the simplest installation using the defaults of <a href="https://www.openbsd.org">OpenBSD</a> with the default
web server <a href="https://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man8/httpd.8">httpd(8)</a>.
To begin with, configure <span class="file">/etc/httpd.conf</span> with your server's root being in <span
class="file">/var/www</span> and FastCGI being in <span class="file">/var/www/cgi-bin</span>.
If you've already done this, or have a configuration file in place, you won't need to do this.
@@ -239,10 +239,10 @@ const char *const pages[PAGE__MAX] = {
}</pre>
</figure>
<p>
Next, we use the <a href="http://man.openbsd.org/rcctl.8">rcctl(8)</a> tool to enable and
start the <a href="http://man.openbsd.org/httpd.8">httpd(8)</a> webserver and
<a href="http://man.openbsd.org/slowcgi.8">slowcgi(8)</a> wrapper.
(The latter is necessary because <a href="http://man.openbsd.org/httpd.8">httpd(8)</a> only
Next, we use the <a href="https://man.openbsd.org/rcctl.8">rcctl(8)</a> tool to enable and
start the <a href="https://man.openbsd.org/httpd.8">httpd(8)</a> webserver and
<a href="https://man.openbsd.org/slowcgi.8">slowcgi(8)</a> wrapper.
(The latter is necessary because <a href="https://man.openbsd.org/httpd.8">httpd(8)</a> only
directly supports FastCGI, so a proxy is necessary.)
Again, you may not need to do this part.
We also make sure the instructions on the main page are followed regarding OpenBSD sandboxing in the file-system jail.
+2 -2
View File
@@ -87,8 +87,8 @@ main(void)
Our installation process will look a great deal like that of <a href="tutorial0.html">Getting Started with CGI in C</a> except
that we'll change our paths around a bit.
First, let's configure the web server.
I'll assume this is OpenBSD's <a href="http://man.openbsd.org/httpd.8">httpd(8)</a>.
The file-format documentation is <a href="http://man.openbsd.org/httpd.conf.5">httpd.conf(5)</a>.
I'll assume this is OpenBSD's <a href="https://man.openbsd.org/httpd.8">httpd(8)</a>.
The file-format documentation is <a href="https://man.openbsd.org/httpd.conf.5">httpd.conf(5)</a>.
</p>
<figure class="sample">
<pre class="prettyprint lang-sh linenums">server "me.local" {
+1 -1
View File
@@ -122,7 +122,7 @@
We use year zero to indicate an invalid specification, and month/day zero to indicate that a month/day value was not specified.)
</p>
<p>
<strong>Editor's note</strong>: remember that <a href="http://man.openbsd.org/strptime">strptime(3)</a> and friends may not be
<strong>Editor's note</strong>: remember that <a href="https://man.openbsd.org/strptime">strptime(3)</a> and friends may not be
available within a file-system sandbox due to time-zone access, so we need to find another way.
</p>
<figure class="sample">