[MacPorts] #68621: Two nginx problems: 1. try_files will add "html" to the search path 2. 403 even though all permissions are set properly.
MacPorts
noreply at macports.org
Thu Nov 2 13:46:33 UTC 2023
#68621: Two nginx problems: 1. try_files will add "html" to the search path 2. 403
even though all permissions are set properly.
----------------------+-------------------------
Reporter: qiulang | Owner: Schamschula
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: nginx |
----------------------+-------------------------
Comment (by Schamschula):
Indeed, {{{nginx.conf}}} hasn't been patched for macOS. Each user has
different requirements, so there isn't one "fits all" solution. I heavily
modify {{{nginx.conf}}} on my machines (forbidden files/directories,
https, proxy, rewrites, etc.). That said, we could use {{{root
/Library/WebServer/Documents}}}, the longtime location on macOS.
The line {{{root share/nginx/html/dist/;}}} doesn't start with a
{{{/}}}, so it is relative to some other path.
The line {{{#root /Users/langqiu/myapp/dist;}}} starts with a {{{#}}},
which means that it is commented out.
--
Ticket URL: <https://trac.macports.org/ticket/68621#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list