Hey,
I am not sure the post template would be useful for this issue as this is yet another “.htaccess conversion” thread, not really a problem with my existing Caddy setup, sorry if I should have followed it anyway.
I am planning on installing this on my server, but the installer errors out with:
installer-testdir/Subdir/Node/Test/RewriteRules caused an HTTP 404 Not Found
The file installer-testdir/.htaccess created by the installer did not produce the expected result.
Most probably your Web server does not have mod_rewrite enabled, or AllowOverride is not set for this directory tree.
This is a fatal error, as this software relies on URL rewriting to work properly.
I believe this is because it requires creates a .htaccess
with the following content, which has no effect with Caddy:
RewriteEngine on
RewriteRule ^.*$ index.php?node=$0 [L,QSA]
I am struggling to convert that into Caddy syntax. I checked other threads and found similar issues, but couldn’t succeed based on them anyway.
This is the chunk in my Caddyfile where I assume the rewrite directive should go:
yoctovh.domain.tld, www.yoctovh.domain.tld {
tls email@domain.tld
root * /var/www/yoctopuce/virtualhub4web # The installer.php file is there
encode gzip
php_fastcgi unix//run/php/php7.3-fpm.sock
file_server
}