Only unix way, only hardcore! I can't seem to get nginx to load anything on port brew install nginx --with-passenger. I have it running on my iMac but not on my MBP, is there some difference in configuration?
There is a good chance you have nano installed. Try it, if not, use your favourite text editor. Make sure you open the file with elevated privileges so you can save it. It is a system file. Hi, very new to nginx, how should I lunch nginx after setting up the mentioned files? Thanks for this gist! Btw, just make sure to set the proper access permission to the files when configuring the log files.
I used mkcert for registering local domains. I thought that was enough. This should run without using sudo nginx anyone know why I have to keep using sudo? The problem is Forbidden, which means that the file probably the index. So execute this command:. Your problem will be solved. Of course, make sure that you have that file inside that specific path. You could figure out what is the app using that port and delete it or change the port the service is using.
I had the same problem and the way I fixed it was modifying my nginx. If you fix that problem and now you're getting the Forbidden error, read my last comment right here on this page. I was thinking I needed to use the brew services sudo brew services nginx start to start on 80, but this was definitely the right solution using sudo nginx , etc.
How do I create different configurations of my local projects? Find centralized, trusted content and collaborate around the technologies you use most. Connect and share knowledge within a single location that is structured and easy to search.
The option you have specified --conf-path is not a homebrew supported option. You can see that by running this:. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow.
Learn more. Ask Question. Asked 5 years, 1 month ago. Active 5 years, 1 month ago.
0コメント