This shows you the differences between two versions of the page.
Next revision | Previous revision |
en:server:services:nginx [2022/05/30 06:41] – created dan | en:server:services:nginx [2023/01/01 00:52] (current) – [nginx] deleted nginx link - wrong page dan |
---|
nginx (pronounced "engine X"), is a free, open-source, high-performance HTTP server and reverse proxy, as well as an IMAP/POP3 proxy server, written by Igor Sysoev in 2005. nginx is well known for its stability, rich feature set, simple configuration, and low resource consumption. | nginx (pronounced "engine X"), is a free, open-source, high-performance HTTP server and reverse proxy, as well as an IMAP/POP3 proxy server, written by Igor Sysoev in 2005. nginx is well known for its stability, rich feature set, simple configuration, and low resource consumption. |
| |
| Check also [[/en/server/services/ssl|ssl]]. |
===== Package ===== | ===== Package ===== |
| |
<code> | <code> |
pacman -S nginx | pacman -S nginx |
</code> | |
| |
===== Start ===== | |
| |
<code> | |
systemctl enable --now nginx.service | |
</code> | </code> |
| |
| |
<code> | <code> |
mkdir /etc/nginx/{sites-enabled,sites-available} | mkdir /etc/nginx/{sites-enabled,sites-available,conf.d} |
cp /etc/nginx/nginx.conf /etc/nginx/nginx.conf.original | cp /etc/nginx/nginx.conf /etc/nginx/nginx.conf.original |
nano /etc/nginx/nginx.conf | nano /etc/nginx/nginx.conf |
include /etc/nginx/sites-enabled/*; | include /etc/nginx/sites-enabled/*; |
} | } |
| </code> |
| |
| ===== Start ===== |
| |
| <code> |
| systemctl enable --now nginx.service |
</code> | </code> |