cretueusebiu / valet-windows

Laravel Valet for Windows.
MIT License
912 stars 86 forks source link

Unable to start NGINX after upgrading to Windows 11 #197

Open rognales opened 2 years ago

rognales commented 2 years ago

This installation was working fine on Windows 10. However, once upgraded to Windows 11, nginx unable to start.

NGINX Error Log

nginx: [emerg] invalid server name or wildcard "..test" on 0.0.0.0:80

Issuing valet services show only nginx is stopped

+------------+---------------------+---------+
| Service    | Windows Name        | Status  |
+------------+---------------------+---------+
| acrylic    | AcrylicDNSProxySvc  | running |
| nginx      | valet_nginx         | stopped |
| php        | valet_phpcgi        | running |
| php-xdebug | valet_phpcgi_xdebug | running |
+------------+---------------------+---------+

I already tried restarting without success:-

  1. valet restart
  2. valet restart nginx
  3. Restart using Task Manager > Services > valet_nginx

I also tried the common reinstalling steps:-

  1. valet stop
  2. valet uninstall
  3. valet install
pixels-for-breakfast commented 2 years ago

Exact same issue here. Any idea?

pixels-for-breakfast commented 2 years ago

Found a solution.

It seems you'll have to free up port 80, since it's being blocked, which unables nginx to start properly. You can do this by executing: netsh http add iplisten ipaddress=:: in the console. After that restart nginx by using valet restart nginx and check the result with valet services. You should now be able to open up the local website in your browser.