Hi all! I've been on D6+D7 for eons, now working on Backdrop. In my local Archlinux LEMP environment everything runs smoothly.
I am now staging a friend's site to a new VPS with Debian 11 / LEMP / ISPConfig. All seems to be good there, and I managed to get the site to transfer using the unzip of the Backup/Migrate into position, and the installation of the database.
BUT when the site operates it throws a 404 at every page not the index.php. Using the old index.php?q= method to navigate through it I managed to get to Clean URLs and run the test, where it tells me
- The clean URL test failed.
- Clean URLs cannot be enabled.
- Clean URLs cannot be enabled.
error_page 404 = @backdrop; location @backdrop { rewrite ^(.*)$ /index.php?q=$1 last; }
^^ My nginx directive, as per Backdrop docs.
Also I checked the perms, and cleaned a couple of those up, but still no difference.
Any ideas?
I got it going eventually.
What I did:
So in order to help the community, and any other idiots wrestling with ISPConfig LEMP versus Backdrop, here's the magic sauce:
That is the bash script that I run inside the web root for Backdrop. Yes, that requires command line access. The web3:client1 is unique to my server, yours will vary. Also after running this it marks itself as not executable, so you will need to chmod +x it.
Over to ISPConfig, and in the domain/options/nginx directives, you can put the following: