20 practical tips for Nginx web server

Nginx is a lightweight, high-performance web server/reverse proxy and email proxy (IMAP/POP3) that runs on UNIX, GNU/Linux, BSD variants, MAC OS X, Solaris, and Microsoft on Windows. According to Netcraft survey data, 6% of domain names on the Internet use Nginx Web server. Nginx is one of the servers that solve the C10K problem. Unlike traditional servers, Nginx does not rely on threads to process requests. Instead, it uses a more scalable event-driven (asynchronous) architecture. Nginx is used on many high traffic websites such as WordPress, Hulu, Github and SourceForge. The main purpose of this article is to introduce how to improve the security of Nginx web server running on Linux or UNIX-like operating system. Nginx default configuration file and default port ◆ /usr/local/nginx/conf/ – Nginx server configuration directory, /usr/local/nginx/conf/nginx.conf is the main configuration file ◆ /usr/local/nginx/html/ – default document location ◆ /usr/local/nginx/logs/ – default log file location ◆ Nginx HTTP default port: TCP 80 ◆ Nginx HTTPS default port: TCP 443 You can use the following command to test whether the configuration of Nginx is correct: # /usr/local/nginx/sbin/nginx -t Example output: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok configuration file /usr/local/nginx/conf/nginx.conf test is successful To make the modified configuration…

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索