Hi,
I have gone over the webserver github pages and read as much as I can find in the forums regarding wordpress/apache .htaccess and url redirection.
From the Github:
nginx
add a dyn-9001.custom to /home/webserver1/.config/state/conf.d/
vim /home/webserver1/.config/state/conf.d/dyn-9001.custom and write a valid nginx configuration
set the file ownership to webserver1 : chown webserver1:webserver1 /home/webserver1/.config/state/conf.d/dyn-9001.custom
But this doesn’t work with location
or similar, logs complain about duplicate location /.
I tried without the location / (used only try_files $uri $uri/ /index.php?$args;) and permalinks don’t work. Obviously this is a common issue with migration from NS7 to NS8 webserver so can the github page please be updated with a simple solution as I’m wondering how to overcome. Modifying the dyn-900x.conf files of course doesn’t work.
I’ve put up with several websites having terrible link references for almost year and was hoping someone would explain sometime what I am missing. But so far no luck , With customers now wanting to use wp staging this is getting to the “throw the baby out with the bathwater stage” and put in a proxmox VM apache server to overcome this very common issue.
Any help or insights I’ve missed would be much appreciated.
I saw that Andy, but was hoping I could stick with the webserver module, otherwise why have it at all I’ve put together LAMP units myself, and have used them on windows for testing but I was really hoping the webserver module would be fixed. Otherwise it’s like having a Swiss army knife without a working cork screw
Thanks for the reminder. I’m very used to using the http routes. I have quite a few VMs running ERPNext, MeshCentral, Envoy Power Control etc. all using the letsencrpyt feature as our local hosting providers don’t offer DNS api. It’s great now nethServer has the ignore remote certificate option in place.
Have a fantastic night,
Matthew
PS I actually need the uri rewrite working in the nginx webserver containers for WordPress permalinks but can’t crack the syntax.
I keep getting a duplicate block error, and without the location part it doesn’t seem to do anything. I’ve also tried similar options but I’m always getting the dreaded 404 error when enabling permalinks in WordPress. I bet it’s something simple I’m missing lol