version 1.17, 2016/05/28 13:40:49 |
version 1.20, 2016/07/11 22:48:37 |
|
|
.\" $Id$ |
.\" $Id$ |
.\" |
.\" |
.\" Copyright (c) 2014, 2015, 2016 Ingo Schwarze <schwarze@openbsd.org> |
.\" Copyright (c) 2014, 2015, 2016 Ingo Schwarze <schwarze@openbsd.org> |
.\" |
.\" |
Line 157 Configure your web server to execute CGI programs loca |
|
Line 157 Configure your web server to execute CGI programs loca |
|
.Pa /cgi-bin . |
.Pa /cgi-bin . |
When using |
When using |
.Ox |
.Ox |
.Xr httpd 8 |
.Xr httpd 8 , |
or |
|
.Xr nginx 8 , |
|
the |
the |
.Xr slowcgi 8 |
.Xr slowcgi 8 |
proxy daemon is needed to translate FastCGI requests to plain old CGI. |
proxy daemon is needed to translate FastCGI requests to plain old CGI. |
|
|
.Pp |
.Pp |
.Dl make man.cgi |
.Dl make man.cgi |
.Pp |
.Pp |
and copy the files to the proper locations. |
and copy the resulting binary to the proper location, |
Reading the |
for example using the command: |
.Cm installcgi |
.Pp |
target in the |
.Dl make installcgi |
.Pa Makefile |
.Pp |
can help with that, but do not run it without carefully checking it |
In addition to that, make sure the default manpath contains the files |
because the directory layouts of web servers vary greatly. |
.Pa man1/apropos.1 |
|
and |
|
.Pa man8/man.cgi.8 , |
|
or the documentation links at the bottom of the index page will not work. |
.Ss URI interface |
.Ss URI interface |
.Nm |
.Nm |
uniform resource identifiers are not needed for interactive use, |
uniform resource identifiers are not needed for interactive use, |
Line 251 and the name of the requested file, for example |
|
Line 252 and the name of the requested file, for example |
|
.Pa /OpenBSD-current/man1/mandoc.1 . |
.Pa /OpenBSD-current/man1/mandoc.1 . |
This can be abbreviated according to the following syntax: |
This can be abbreviated according to the following syntax: |
.Sm off |
.Sm off |
.Op / Ar manpath Oo / Cm man Ar sec Oc Op / Ar arch |
.Op / Ar manpath |
|
.Op / Cm man Ar sec |
|
.Op / Ar arch |
.Pf / Ar name Op \&. Ar sec |
.Pf / Ar name Op \&. Ar sec |
.Sm on |
.Sm on |
.It |
.It |
|
|
data directory containing all the manual trees. |
data directory containing all the manual trees. |
Can be overridden by |
Can be overridden by |
.Dv MAN_DIR . |
.Dv MAN_DIR . |
.It Pa /man/mandoc/man1/apropos.1 , /man/mandoc/man8/man.cgi.8 |
|
Manual pages documenting |
|
.Nm |
|
itself, linked from the index page. |
|
.It Pa /man/manpath.conf |
.It Pa /man/manpath.conf |
The list of available manpaths, one per line. |
The list of available manpaths, one per line. |
If any of the lines in this file contains a slash |
If any of the lines in this file contains a slash |