: This article describes how to parse the Nginx configuration file. if you are interested in the PHP Tutorial, refer to it. After Nginx is installed, a corresponding installation directory is generated. according to the preceding installation path,
Security Configuration of nginx on Linux server, nginx on linux Server1. Common sense
In linux, to read a file, you must first have the execution permission on the folder where the file is located, and then read the file.
The execution of php
This article details the security configuration of the Nginx server, as follows:
First, close SELinux
Security-Enhanced Linux (SELinux) is a Linux kernel feature that provides security policy protection for access control.
However, the added
after installation of Nginx, the corresponding installation directory will be generated, according to the previous installation path, nginx configuration file path is/opt/nginx/conf, where nginx.conf is the main configuration file nginx. The
1. Installing Nginx
Before installing Nginx, make sure the system has the GCC, openssl-devel, pcre-devel, and Zlib-devel repositories installed.Here is the Nginx installation process:
wget Http://nginx.org/download/nginx-1.0.14.tar.gztar zxvf
Nginx is a lightweight, high-performance Web server/reverse proxy and email agent (IMAP/POP3) that can run on Unix,gnu/linux,bsd variants, MAC OS x,solaris and Microsoft Windows. According to Netcraft's survey data, 6% of the Internet's domain names
1, some common sense
Under Linux, to read a file, you first need to have execute permissions on the folder where the file is located, and then you need to read permissions on the file.
PHP file execution does not require file execution
It has been popular for a while to build a Web site by nginx+ PHP, which runs in fastcgi mode. But after a period of consideration, it is often found that there are some 502 errors. In fact, the form of nginx+fastcgiphp is generally not very stable
--with-http_stub_status_module This module function is to record the Nginx basic information Access status
1, check whether the compilation has this function module.
[Root@slave nginx]#/usr/sbin/nginx-v
Nginx version:nginx/1.8.0
Built by GCC 4.4.7 20
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.