A SWAG reverse proxy should forward requests to WordPress running in the official wordpress docker image. The URL which is served by the reverse proxy is not the domain root, but a subfolder “blog”: https://www.example.com/blog.
What does not work
Letting the docker image itself serve wordpress in the root folder and write some clever proxy / rewrite rules. At first it seems to work, but when it comes wp-admin URLs like https://www.example.com/blog/wp-admin a magic redirection happens to https://www.example.com/wp-admin which points to outside the WordPress installation.
Fiddling around with
WP_SITEURL does not solve the problem.
As it turns out WordPress needs to know the fact that it is installed in a subfolder, quote:
Continue reading “SWAG and WordPress in a subfolder”
What you’ll want to do is run your WordPress container with WORKDIR set to /var/www/html/lab so it knows it is in a subdirectory and acts accordingly.
In a hosted environment you ususally don’t have direct access to the database where calendars and contacts are stored.
And even when the provider has some sort of backup
- you don’t really own it, because you can’t download it
- e.g. you don’t can’t just migrate in case you are locked out for some reason
- its an “all or nothing” story when it comes to restores
- the whole instance/account is reset to some point in time
- any change in between the last backup is effectively overwritten
Continue reading “Howto backup hosted nextcloud”
Some software like digital image processing tools work with sidecar files which are placed next to the original file. E.g. darktable uses
.xmp as file extension, rawtherapee
When you sort out / delete original files outside of the software, you end up with orphaned sidecar files.
Continue reading “Find orphaned sidecar files”
Führt der eigene Code http-Calls aus, z.B. um Dateien von einem externen Server runterzuladen stellt sich die Frage nach der Testbarkeit. Idealerweise ist der Code so aufgebaut, daß er nicht direkt von einer http-Library abhängt und man entsprechende Calls mocken kann. Ist dies nicht einfach möglich, kann man den in der Standarlibrary eingebauten
Continue reading “Wie man http-Server unter Python mockt”
http.server als localhost-Gegenstelle für Tests verwenden.
On Ubuntu 20.04 the default installation of mumble server doesn’t startup with a certbot letsencrypt certificate. The reason is unsufficent permission to the key files which are owned by root.
Continue reading “How to fix mumble-server startup with letsencrypt certificates on Ubuntu”