How to install NGINX on Alpine Linux?

in #nginxlast year

Nginx is a lightweight and high performance web server/reverse/email(IMAP/POP3) proxy.

Basic features

  • Static file server, indexes and auto-indexing.
  • Reverse proxy with caching options.
  • Load balancing.
  • Fault tolerance.
  • Support of HTTP and HTTP2 over SSL.
  • Support for FastCGI with caching options.
  • Virtual hosts based on name and/or IP address.
  • Support for authentication.
  • IPv6 compatible
  • gzip compression.

You can see all NGINX features at:

Readings interest:

Install

# apk add nginx
fetch https://ams.edge.kernel.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz
(1/4) Installing pcre (8.44-r0)
(2/4) Installing nginx (1.20.1-r3)
Executing nginx-1.20.1-r3.pre-install
Executing nginx-1.20.1-r3.post-install
(3/4) Installing nginx-openrc (1.20.1-r3)
(4/4) Installing nginx-vim (1.20.1-r3)
Executing busybox-1.33.1-r3.trigger
OK: 264 MiB in 72 packages

Via LibreByte