From 4dae43cc2c1469f30bd89da7db066924f7a0ed3f Mon Sep 17 00:00:00 2001 From: Natasha Moongrave Date: Mon, 23 Mar 2026 14:47:34 +0100 Subject: Moved CaddyFile to Caddyfile --- CaddyFile | 44 -------------------------------------------- Caddyfile | 44 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+), 44 deletions(-) delete mode 100644 CaddyFile create mode 100644 Caddyfile diff --git a/CaddyFile b/CaddyFile deleted file mode 100644 index 1aac44e..0000000 --- a/CaddyFile +++ /dev/null @@ -1,44 +0,0 @@ -:80 { - # Site's directory - root * /var/www/html/src - - # Enable the static file server. - file_server - - # Or serve a PHP site through php-fpm: - php_fastcgi unix//run/php/php8.4-fpm.sock - - - # Prettify the links - - ## HOME ## - rewrite /home /index.html - rewrite /home/ index.html - - ## GUESTBOOK ## - rewrite /guestbook /Pages/guestbook/guestbook.php - rewrite /guestbook/ /Pages/guestbook/guestbook.php - - ## CONTACT US ## - rewrite /contact /Pages/contact.html - rewrite /contact/ /Pages/contact.html - - - ## MUSIC ## - rewrite /music /Pages/music.html - rewrite /music/ /Pages/music.html - - ## BLOG ## - # Blog list - rewrite /blog /Pages/blog/blog.php - rewrite /blog/ /Pages/blog/blog.php - - # Individual post - @blogPost { - path_regexp blogPost ^/blog/(.+)$ - } - rewrite @blogPost /Pages/blog/blog.php?post={re.blogPost.1} -} - -# Refer to the Caddy docs for more information: -# https://caddyserver.com/docs/caddyfile diff --git a/Caddyfile b/Caddyfile new file mode 100644 index 0000000..1aac44e --- /dev/null +++ b/Caddyfile @@ -0,0 +1,44 @@ +:80 { + # Site's directory + root * /var/www/html/src + + # Enable the static file server. + file_server + + # Or serve a PHP site through php-fpm: + php_fastcgi unix//run/php/php8.4-fpm.sock + + + # Prettify the links + + ## HOME ## + rewrite /home /index.html + rewrite /home/ index.html + + ## GUESTBOOK ## + rewrite /guestbook /Pages/guestbook/guestbook.php + rewrite /guestbook/ /Pages/guestbook/guestbook.php + + ## CONTACT US ## + rewrite /contact /Pages/contact.html + rewrite /contact/ /Pages/contact.html + + + ## MUSIC ## + rewrite /music /Pages/music.html + rewrite /music/ /Pages/music.html + + ## BLOG ## + # Blog list + rewrite /blog /Pages/blog/blog.php + rewrite /blog/ /Pages/blog/blog.php + + # Individual post + @blogPost { + path_regexp blogPost ^/blog/(.+)$ + } + rewrite @blogPost /Pages/blog/blog.php?post={re.blogPost.1} +} + +# Refer to the Caddy docs for more information: +# https://caddyserver.com/docs/caddyfile -- cgit v1.2.3