LostKobrakai Posted December 17, 2016 Share Posted December 17, 2016 With php7 I don't see any reason why one would run hhvm besides at enterprice scale. Without 100% feature parity to php using hhvm is trading a spark more speed for the potential of having unexpected issues, which are probably hard to debug/reason about. Link to comment Share on other sites More sharing options...
pwFoo Posted December 17, 2016 Share Posted December 17, 2016 I don't use it in prod. Just tests Link to comment Share on other sites More sharing options...
netcarver Posted July 15, 2021 Share Posted July 15, 2021 Hello wonderful Caddyphiles, Do any of you have an updated config for PW and Caddy? I wouldn't mind trying this out now Caddy has matured somewhat. Never run it before though so will start acquainting myself with the docs. 1 Link to comment Share on other sites More sharing options...
Beluga Posted July 15, 2021 Share Posted July 15, 2021 Here is my Caddy 2 config for a PW site: mysite.fi, www.mysite.fi { encode gzip tls my@email.com root * /var/www/mysite/pw file_server php_fastcgi unix//var/run/php-fpm/php-fpm.sock { health_timeout 10000s } @deny_hidden path_regexp /\. @deny_root path_regexp /(CONTRIBUTING|COPYRIGHT|LICENSE|README|htaccess)\.txt @deny_assets path_regexp ^/site(-[^/]+)?/assets/(.*\.php|backups|cache|config|install|logs|sessions) @deny_install path_regexp ^/site(-[^/]+)?/install @deny_config path_regexp ^/(site(-[^/]+)?|wire)/(config(-dev)?|index\.config)\.php @deny_modules path_regexp ^/((site(-[^/]+)?|wire)/modules|wire/core)/.*\.(inc|module|php|tpl) @deny_templates path_regexp ^/(site(-[^/]+)?|wire)/templates(-admin)?/.*\.(inc|html?|php|tpl) rewrite @deny_hidden /denyaccess rewrite @deny_root /denyaccess rewrite @deny_assets /denyaccess rewrite @deny_install /denyaccess rewrite @deny_config /denyaccess rewrite @deny_modules /denyaccess rewrite @deny_templates /denyaccess # global rule try_files {path} {path}/ /index.php?it={path}&{query} log { format single_field common_log output file /var/log/www/access.log { roll_size 50MiB roll_keep 5 roll_keep_for 168h } } } 5 2 Link to comment Share on other sites More sharing options...
netcarver Posted July 15, 2021 Share Posted July 15, 2021 Excellent, thank you @Beluga Link to comment Share on other sites More sharing options...
Jonathan Lahijani Posted November 30, 2023 Share Posted November 30, 2023 I've been using Apache forever... never even touched nginx. Today I felt like giving Caddy a try and it feels nice. I developed what I believe is a much more improved Caddyfile that also supports ProCache and stronger blocking of files (returns a 403 like PW's htaccess file, instead of a 404 which is what /denyaccess seems to do). I added a way to also put the site in maintenance mode (meaning all requests get rewritten to /maintenance.php) if /maintenance.php exists (which is now part of my deployment process). Hopefully I can share the results in a week. 5 Link to comment Share on other sites More sharing options...
bernhard Posted November 30, 2023 Share Posted November 30, 2023 7 hours ago, Jonathan Lahijani said: I added a way to also put the site in maintenance mode (meaning all requests get rewritten to /maintenance.php) if /maintenance.php exists (which is now part of my deployment process). RockMigrations has a checkbox to prevent guest access. What you state hear sounds interesting. What do you think of adding that to RockMigrations? 1 Link to comment Share on other sites More sharing options...
Recommended Posts