Davical on httpd

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Davical on httpd

Anders Trobäck-2
Hi,

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 can get the admin page to run but not from calendar clients.

Running on OpenBSD 6.0 GENERIC#2148 amd64.

Thanks!


Regards,
Anders Trobäck


Reply | Threaded
Open this post in threaded view
|

Re: Davical on httpd

Michael Warmuth-Uhl
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"
    }

    ...
  }

For php-fpm, I set pm.max_children to 25 because the default of 5 was
too less for my usage.

Good luck,

Michael

Reply | Threaded
Open this post in threaded view
|

Re: Davical on httpd

Landry Breuil-5
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 :)

Reply | Threaded
Open this post in threaded view
|

Re: Davical on httpd

Marcus MERIGHI
[hidden email] (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
 ====================