types { include "/usr/share/misc/mime.types" } server "bookcorner.ge" { include "/etc/httpd/_listen80.conf" include "/etc/httpd/_acme.conf" location "*" { # HTTP 301 Moved Permanently - enforce HTTPS block return 301 "https://bookcorner.ge$REQUEST_URI" } } server "bookcorner.ge" { include "/etc/httpd/_listen443.conf" include "/etc/httpd/_acme.conf" root "/htdocs/phoenixcart" directory index "index.php" location "*.php" { fastcgi socket "/run/php-fpm.sock" } } server "www.bookcorner.ge" { include "/etc/httpd/_listen80.conf" include "/etc/httpd/_listen443.conf" include "/etc/httpd/_acme.conf" location "*" { # HTTP 301 Moved Permanently - enforce non-www site block return 301 "https://bookcorner.ge$REQUEST_URI" } } server "git.bookcorner.ge" { include "/etc/httpd/_listen80.conf" include "/etc/httpd/_acme.conf" location "*" { # HTTP 301 Moved Permanently - enforce HTTPS block return 301 "https://git.bookcorner.ge$REQUEST_URI" } } server "git.bookcorner.ge" { include "/etc/httpd/_listen443.conf" include "/etc/httpd/_acme.conf" location "/cgit.*" { root "/cgit" no fastcgi } root "/cgi-bin/cgit.cgi" fastcgi socket "/run/slowcgi.sock" }