nginx 好用的站点配置文件 支持contos7
来源:互联网 发布:宝宝照片创意软件 编辑:程序博客网 时间:2024/06/16 18:02
server {
listen 80;
server_name wx.wanhesc.com;
#charset koi8-r;
#access_log logs/host.access.log main;
root /home/wwwroot/wx.wanhesc.com;
index index.php index.html index.htm;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}
listen 80;
server_name wx.wanhesc.com;
#charset koi8-r;
#access_log logs/host.access.log main;
root /home/wwwroot/wx.wanhesc.com;
index index.php index.html index.htm;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}
阅读全文
1 0
- nginx 好用的站点配置文件 支持contos7
- 某站点的Nginx.conf配置文件
- 十三个好用的Ajax站点
- 好的学习站点
- 一些好的站点
- Nginx支持多站点配置小结
- contos7.4 安装lump环境php7.2+mysql7.2+nginx(最全面,无误的)
- linux .contos7 php+nginx+mysql 环境搭建
- 一个好的下载站点
- JAVA技术的好站点
- 好的资源和站点
- 学习js好的站点
- 一些比较好的站点
- vim中支持nginx配置文件高亮
- Nginx 的多站点配置
- Nginx 的多站点配置
- Nginx 的多站点配置
- Nginx 的多站点配置
- Type handler was null on parameter mapping for property '__frch_productId_0'. It was either not spec
- 二叉树的层序遍历——题集(七)
- Mybatis注解
- vector用法
- 【吭哧吭哧算法】快速排序
- nginx 好用的站点配置文件 支持contos7
- JAVA反射机制学习(三)
- [读书笔记]机器学习-11章-特征选择和稀疏学习
- python+paramiko —— run cmd through middle host
- SQL Server执行计划相关知识
- 选择排序
- 你真的了解volatile吗?
- 动态添加SqlParameter
- 《快学Scala》第20章部分习题参考解答(Actor)