README: add CGI configuration examples - gopherproxy-c - Gopher HTTP proxy in C (CGI)
(HTM) git clone git://git.codemadness.org/gopherproxy-c
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 9513ef706fdb1d0fe7ec1c8f6da1fb78ed573f2d
(DIR) parent e21c517078a89ad1023d7ac0c5db8aa5eecab7a9
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 17 Aug 2018 18:50:11 +0200
README: add CGI configuration examples
Diffstat:
M README | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/README b/README
@@ -24,6 +24,28 @@ Cons
- Not all gopher types are supported.
+CGI configuration examples
+--------------------------
+
+Mginx + slowcgi:
+
+ location /gopherproxy/ {
+ include /etc/nginx/fastcgi_params;
+ fastcgi_pass unix:/run/slowcgi.sock;
+ fastcgi_param SCRIPT_FILENAME /cgi-bin/gopherproxy.cgi;
+ fastcgi_param SCRIPT_NAME /cgi-bin/gopherproxy.cgi;
+ fastcgi_param REQUEST_URI /cgi-bin/gopherproxy.cgi;
+ }
+
+
+OpenBSD httpd + slowcgi:
+
+ location "/gopherproxy" {
+ root "/cgi-bin/gopherproxy.cgi"
+ fastcgi
+ }
+
+
Notes
-----