Please do NOT post requests for help here. Use the Help forum for that.

TOPIC: Example configuration for Caddy web server

Example configuration for Caddy web server 3 weeks 4 days ago #1

  • buovjaga
  • buovjaga's Avatar
  • Offline
  • New
  • Posts: 8
I would like to share the configuration I use for webtrees with Caddy web server. In webtrees versions prior to 1.7.11, the configuration required a small modification to includes/session.php, but thankfully this is no longer the case.

The configuration was originally provided to me by Abiola Ibrahim.
https://yoursite.com {
    tls your@email.com
    root /var/www/webtrees

    fastcgi / unix:/var/run/php-fpm/php-fpm.sock php 

    internal /forbidden

    rewrite {
        r ^/data
        to /forbidden
    }

    log /var/log/www/access.log {
        rotate_size      50
        rotate_age       7
        rotate_keep      5
    }
    errors /var/log/www/error.log {
        rotate_size      50
        rotate_age       7
        rotate_keep      5
    }
}
The administrator has disabled public write access.
Moderators: makitso
Powered by Kunena Forum