Nginx http服务相关的配置文件
来源:互联网 发布:淘宝网页版怎么看提问 编辑:程序博客网 时间:2024/06/05 16:07
Nginx http服务配置文件有很多需要我们掌握的命令,下面我们就来详细的看看有关的问题如何才能解决。只有不断的学习才能更好的掌握有关的Nginx http服务配置的技巧。
- user www www;
- worker_processes 5;
- error_log /var/nginx/logs/error.log;
- #error_log logs/error.log notice;
- #error_log logs/error.log info;
- pid /var/nginx/nginx.pid;
- events {
- use epoll;
- worker_connections 1024;
- }
- http {
- include mime.types;
- default_type application/octet-stream;
- root /var/www/htdocs/;
- log_format main '$remote_addr - $remote_user [$time_local] $request '
- '"$status" $body_bytes_sent "$http_referer" '
- '"$http_user_agent" "$http_x_forwarded_for"';
- access_log /var/nginx/logs/access.log main;
- sendfile on;
- tcp_nopush on;
- #keepalive_timeout 0;
- keepalive_timeout 65;
- gzip on;
- server {
- listen 80;
- server_name localhost;
- #charset koi8-r;
- access_log /var/nginx/logs/host.access.log main;
- location / {
- root /var/www/htdocs/;
- index index.html index.htm index.php;
- }
- error_page 404 /404.html;
- error_page 500 502 503 504 /50x.html;
- location = /50x.html {
- root /var/www/htdocs;
- }
- location ~ /.php$ {
- root html;
- fastcgi_pass 127.0.0.1:10005;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME /var/www/htdocs/$fastcgi_script_name;
- include fastcgi_params;
- }
- location ~ //.ht {
- deny all;
- }
- }
- }
以上就是对Nginx http服务的详细介绍,希望大家有所收获。
- Nginx http服务相关的配置文件
- Nginx配置文件服务管理
- nginx服务二---nginx配置文件解释
- nginx服务三---nginx配置文件解释补充
- Apache http服务配置文件说明
- Apache http服务配置文件说明
- nginx http服务搭建配置
- Nginx HTTP负载均衡/反向代理的相关参数测试
- Nginx HTTP负载均衡/反向代理的相关参数测试
- Nginx HTTP负载均衡/反向代理的相关参数测试
- Nginx HTTP负载均衡/反向代理的相关参数测试
- Nginx HTTP负载均衡/反向代理的相关参数测试
- Nginx HTTP负载均衡/反向代理的相关参数测试
- 详解Nginx中HTTP的keepalive相关配置
- nginx学习笔记(2)---nginx配置文件中优化相关的参数
- Nginx的配置文件nginx.conf
- nginx的配置文件
- 【转】nginx的配置文件
- [jQuery收藏] 用 jQuery 开发游戏 —— 25 款 jQuery 游戏插件
- DirectX Rendering Pipeline
- 序列化中CRuntimeClass链表的形成
- FFT中的汉宁窗 C#
- excel数值类型转换为文本
- Nginx http服务相关的配置文件
- 转载 更改GRUB默认启动级别
- ubuntu中文版使用英文目录路径
- 键盘Repeat Delay与Repeat Rate参数含义
- 向本进程窗口中的ListView窗口发送NM_DBLCLK通知(SDK代码)
- Iphone UITableView 创建最简单的表格
- struts2 中 s:text 的使用 资源的访问 多语言实现
- 关于View in Browser
- Java报表制作(iReport+jaserReport+jFreeChart)