lan...@openbsd.org (Landry Breuil), 2017.03.23 (Thu) 21:59 (CET):
> On Thu, Mar 23, 2017 at 09:05:46PM +0100, Michael Warmuth-Uhl wrote:
> > Hello,
> > 
> > On 03/20/17 09:49, Anders Trob?ck wrote:
> > > Does anyone know if it's possible to run productivity/davical in httpd
> > > and if it's possible do you have any recipe for httpd.conf? The
> > > "pkg-readme" only have Apache and Nginx examples.
> > 
> > I'm running davical on httpd with these settings in httpd.conf
> > 
> >   ext_addr="*"
> > 
> >   server "default" {
> >     listen on $ext_addr port 80
> >     listen on $ext_addr tls port 443
> > 
> >     # Increase connection limits to extend the lifetime
> >     connection { max requests 500, timeout 3600 }
> > 
> >     location "/" { directory index index.php }
> > 
> >     location "/davical/*.php*" {
> >             fastcgi socket "/run/php-fpm.sock"
> >             root "/davical/htdocs"
> >     }
> > 
> >     ...
> >   }
> 
> Nice, i'll happily take a diff adding this part to
> productivity/davical/pkg/README :)

here we go...

Marcus

Index: pkg/README
===================================================================
RCS file: /cvs/ports/productivity/davical/pkg/README,v
retrieving revision 1.6
diff -u -p -u -r1.6 README
--- pkg/README  27 Jun 2016 19:36:50 -0000      1.6
+++ pkg/README  24 Mar 2017 08:42:17 -0000
@@ -53,6 +53,24 @@ ${TINSTDIR}/config/config.php and is a r
 sets (or overrides) some specific variables. You should only need to
 set pg_connect value to configure database access.
 
+httpd(8) Configuration
+=====================
+
+With httpd(8), it is easiest to run php-fpm and use the following 
+for a distinct server block:
+
+ext_addr="*"
+server "default" {
+    listen on $ext_addr port 80
+    listen on $ext_addr tls port 443
+    connection { max requests 500, timeout 3600 }
+    location "/" { directory index index.php }
+    location "/davical/*.php*" {
+            fastcgi socket "/run/php-fpm.sock"
+            root "/davical/htdocs"
+    }
+}
+
 Apache Configuration
 ====================

Reply via email to