commit dbcc187b9759640744e16f6a7618045d5e7589a4 from: Stefan Sperling date: Tue Aug 30 17:00:26 2022 UTC update gotwebd.8 httpd.conf example snippet based on feedback by op@ commit - 5e91dae4dd43b8024731223110ab18f505f453ac commit + dbcc187b9759640744e16f6a7618045d5e7589a4 blob - 3687456f89199164de6c10ed6c1650da7489bd44 blob + 5082bf64ffbab2ee220c3f09e4a7ba7d183e6304 --- gotwebd/gotwebd.8 +++ gotwebd/gotwebd.8 @@ -105,19 +105,35 @@ Directory for temporary files created by .Sh EXAMPLES Example configuration for httpd.conf: .Bd -literal -offset indent - types { include "/usr/share/misc/mime.types" } - server "gotweb.example.com" { - listen on * port 80 - root "/htdocs" - location "/gotwebd-unix/*" { + + # one gotwebd reachable at http://gotweb1.example.com/ + server "gotweb1.example.com" { + listen on * port 80 + root "/htdocs/gotwebd" + location "/" { + fastcgi socket tcp localhost 9000 + } + } + + # hosting multiple gotwebd instances on the same HTTP server: + # http://gotweb2.example.com/gotwebd-unix/ + # http://gotweb2.example.com/gotwebd-tcp/ + server "gotweb2.example.com" { + listen on * port 80 + location "/gotwebd-unix/" { fastcgi socket "/run/gotweb.sock" } - location "/gotwebd-tcp/*" { + location "/gotwebd-unix/*" { + root "/htdocs/gotwebd" + request strip 1 + } + location "/gotwebd-tcp/" { fastcgi socket tcp 127.0.0.1 9000 } - location "/*" { - directory index "index.html" + location "/gotwebd-tcp/*" { + root "/htdocs/gotwebd" + request strip 1 } } .Ed