Services/Nginx: Difference between revisions

From Fundamental Ramen
Jump to navigation Jump to search
Line 24: Line 24:
   --with-upload-module \
   --with-upload-module \
   --with-upload-progress-module
   --with-upload-progress-module
</source>
Run nginx as nobody is inconvenient for development.
Run as login account is better.
<source lang="bash">
user  raymond admin;
</source>
</source>



Revision as of 11:57, 19 February 2019

Quick References

TODO Command
List directory
autoindex on;

Install nginx on macOS 10.13+

Default nginx package in Homebrew is missing many modules.

Tap 3rd party package is useful for development.

brew tap denji/nginx

brew install nginx-full \
  --with-echo-module \
  --with-autols-module \
  --with-geoip2-module \
  --with-http2 \
  --with-upload-module \
  --with-upload-progress-module

Run nginx as nobody is inconvenient for development.

Run as login account is better.

user  raymond admin;

Priority of location