I set up a new Wordpress host (droplet) on Digital Ocean. It is "WordPress on Ubuntu 24.04"
I configured it for subdirectory based Wordpress Multisite (MU) aka Wordpress Network.
Digital Ocean has moved to using Caddy Server, instead of Apache2, which I have never used before.
Previously my Wordpress hosts all used Apache2 and you have to create a custom .htaccess to make MU work. Caddy doesn't use an .htaccess file, so you have to update the CaddyFile itself (Caddy sonfiguration file) to make MU work.
A generic CaddyFile looks something like this:
example.com { root /var/www/html encode php_fastcgi unix//run/php/php-version-fpm.sock file_server }
To support Wordpress MU I hade to update to this:
example.com { root /var/www/html ## Added to resolve wp-admin issue for Multisite uri path_regexp (\/{1})(\w|\d|\s)+\/wp- /wp- ## END Added to resolve wp-admin issue for Multisite encode php_fastcgi unix//run/php/php-version-fpm.sock file_server }
No comments:
Post a Comment