sbin/docker/Caddyfile
author ymh <ymh.work@gmail.com>
Tue, 22 Oct 2024 08:53:52 +0200
changeset 1568 8a7d961908a7
parent 1558 761ba7426984
child 1571 4a1e6952afe5
permissions -rw-r--r--
Added tag V08.005 for changeset a805a8ee2b85

polemictweet.test {
    tls internal
    root * /var/www/html

    @main path_regexp ^/(.+)/([0-9A-Za-z_-]+)\.php$
	@phpfile `file() && path('*.php')`

	rewrite /sitemap.xml /sitemap.php

	handle @phpfile {
	  php_fastcgi php-fpm:9000	
	}

    handle {
      root * /var/www/html
	  rewrite @main /{re.2}.php?rep={re.1}
      php_fastcgi php-fpm:9000
      file_server
    }

}