Nginx configuration is deprecated

What issue or error are you experiencing?

Unable to start any sites using Local. I have Windows 11. Latest version of Local

error log reveals the following: 2024/11/20 20:56:10 [warn] 23012#24392: the “listen … http2” directive is deprecated, use the “http2” directive instead in C:/Users/paulb/AppData/Roaming/Local/run/router/nginx/conf/server-block-ssl.conf:2

I used Visual Studio to update the server-block-ssl.conf:2 with the following:

listen 443 ssl;
http2 on;

same result

What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc


System Details

  • Local Version:

  • Operating System (OS) and OS version:


Local Logs

Attach your Local Logs here (Help Doc - Retrieving Local’s Log)


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.

Hi @paulbart

That error is a bit of a false positive in the logs so I wouldn’t worry about that one.

Does changing your Router Mode have any impact? Preferences>Advanced>Router Mode

Are you running Local as an administrator?

I have tried both router methods and tried as administrator. No difference.

We have a Windows Troubleshooting guide below that goes over some common items worth checking. For example, make sure you’re running Local as an admin user, that you don’t have any security blockers, and that Local has access to update your Hosts file.

Are you running other developer applications simultaneously? That could also cause similar issues. Apps like MAMP, XAMPP, or Docker for example.