[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
Fri Nov 3 02:00:20 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 qiulang):

 About my first question, let me reiterate it.

 The default value of root is {{{html}}}, but I have changed it to
 {{{share/nginx/html/dist/}}} since I use a relative path here, so it is
 absolute path is {{{prefix + my relative}}}. The prefix is
 {{{/opt/local}}} as nginx -V shows, so the absolute path is
 {{{/opt/local/share/nginx/html/dist/}}}, which is correct so far.

 What troubles me is the {{{try_files}}} part. From the error.log I can see
 nginx use {{{/opt/local/html}}}, so I was asking where does the final part
 {{{html}}} come from ?

-- 
Ticket URL: <https://trac.macports.org/ticket/68621#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list