What issue or error are you experiencing?
2024/11/26 21:04:24 [warn] 48352#61264: the "listen ... http2" directive is deprecated, use the "http2" directive instead in AppData/Roaming/Local/run/router/nginx/conf/server-block-ssl.conf:2
What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc
I believe the latest version of Local has upgraded NGINX to version nginx-1.26.1+3 this is causing an issue with the router.
The fix to put in place is to adjust these two lines in the NGINX conf:
listen 443 ssl http2;
listen [::]:443 ssl http2;
To this:
listen 443 ssl;
http2 on;
listen [::]:443 ssl;
http2 on;
(The only place I could find these was in this file: server-block-sll.conf
in the AppData/Roaming/Local/run/router/nginx/conf/
dir, as the error suggests above!)
The only problem is, if we modify the file, as soon as we run any site in Local, it regenerates the file and overwrites the changes. I had a quick mooch about to see if there was a default template anywhere that could maybe be edited to overwrite these values for a persistent change, but I didnāt have much joy.
I have also tried changing router mode and creating a new WordPress website; all have the same issue. It worked fine before I updated Local!
Possibly related to this post, I couldnāt comment there as it is closed - Nginx configuration is deprecated - #4 by Nick-B
System Details
-
Local Version: Version 9.1.1+6738
-
Operating System (OS) and OS version:
OS Name Microsoft Windows 11 Pro
Version 10.0.22631 Build 22631
Local Logs
Attach your Local Logs here (Help Doc - Retrieving Localās Log)
error.log (236.1 KB)
local-lightning.log (664.3 KB)
Security Reminder
Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however thereās always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isnāt private info like passwords being displayed.