#user nobody;worker_processes 1; #error_log logs/error.log;#error_log logs/error.log notice;#error_log logs/error.log info; #pid logs/nginx.pid; events {worker_connections 1024;} http {include mime
Tag: nginx
Nginx – $ document_root variable cannot be used in the “root” instruction
I ran into this problem while setting up my nginx configuration. Does anyone know why this happens?
root /folder/my_root;
index index.php index.html index.htm;
error_page 404 /404 .html;
l
Nginx directory through vulnerability
Nginx (engine x) is a high-performance HTTP and reverse proxy server, as well as an IMAP/POP3/SMTP server. Nginx is often used as a reverse proxy, the dynamic part is passed to the backend port by
Nginx causes a big file that cannot be uploaded due to permissions
1. After using the nginx proxy, when the application uploads files, it is found that small files can be uploaded, but large files cannot be uploaded. Check the nginx log and find this sentence: cli
Nginx configuration
1. Official website: http://nginx.org/en/
2. Chinese document: http://www.nginx.cn/doc/standard/httpupstream.html< /p> 3. Proxy configuration example:
The configuration is as follows:
nginx
nginx .conf worker_processes auto; // automatic mode, cpu audit number worker_connections 12500; //a worker rational number, the actual processing quantity is equal to worker_processes* worker_conn
[Essay] [Tools] [Install nginx on Debian9]
Configuration information:
Operating system Linux debian 4.9.0-6-amd64 #1 SMP Debian 4.9.88-1+deb9u1 (2018- 05-07) x86_64 GNU/Linux
deb http://mirrors.ustc.edu.cn/debian/ stretch main n
Use nginx and python to prevent the site from shutting down during the update
I have an active site hosted on Ubuntu, using nginx, the site is written in Python (CherryPy is the server, Bottle is the framework).
I have a shell script that copies the python file I uploa
Nginx location fix: redirection to index.html
I am running nginx v 1.0.4, and we are trying to do the following:
location ~ ^/${
rewrite ^.*$ /index.html last;
} Basically: if the user reaches the default domain http://www.foo.com or h
Nginx Basic Configuration
The basic configuration is as follows:
user www www;
worker_processes auto; #Generally the default is 1, but it can also be the number of cpu, or auto, automatically adjusted
#error_log l