Closed godismyjudge95 closed 1 day ago
I was experiencing the same problem and the fix suggested by @godismyjudge95 is working for me to get NGinX running again, but I still needed to manually add my new proxy domain into my Windows hosts
file.
My proxy is not listed in the output of herd proxies
either.
Steps (Win10, Herd v1.9.0):
C:\>herd proxy testServer http://127.0.0.1:8025
Valet will now proxy [http://testServer.test] traffic to [http://localhost:8025].
Restarting NGINX...
[ ] BUG: NGinX service in Herd did not restart because of the invalid path referenced for the error_log in the NGinX config file that was generated.
[ ] FEATURE REQUEST: An error message or confirmation would be nice on the previous command output to inform the user that the NGinX service failed to start.
%USERPROFILE%/.config/herd/config/valet/Log/
directory (this must only be done once)%USERPROFILE%\.config\herd\config\valet\Nginx\testServer.test.conf
to change the error_log
paths (lines 18 and 65) to a directory that exists (this would be required for each proxyherd restart
herd proxies
C:\Windows\System32\drivers\etc\hosts
(in Admin mode) to add the proxy reference127.0.0.1 testServer.test
herd proxy...
commands should create an entry in the hosts
fileI'm encountered the same issues on MacOS.
For MacOS:
Navigate to proxy configuration file: /Users/<YOUR_USER>/Library/Application Support/Herd/config/valet/Nginx
From:
error_log "/Users/<YOUR_USER>/Library/Application Support/Herd/config/valet/Log/<YOUR_PROXY>.test-error.log";
To:
error_log "/Users/<YOUR_USER>/Library/Application Support/Herd/Log/<YOUR_PROXY>.test-error.log";
After saved, restart Herd and you can access the URL.
Platform
Windows
Operating system version
Windows 11 Pro (22631.3880)
System architecture
Intel (x86)
Herd Version
1.9.0
PHP Version
No response
Bug description
Creating a proxy using the
herd proxy
command causes it to create a new NGINX site config that then causes NGINX to not boot because there is an error in it.The solution is quite simple, we just need to change the path from:
To:
Steps to reproduce
herd proxy --secure reverb.test https://localhost:8080
Relevant log output