nginx 中 相关配置信息
来源:互联网 发布:nginx 访问目录 403 编辑:程序博客网 时间:2024/06/05 04:25
默认的ngixn 错误日志 目录是在: /var/log/nginx/error.log;
虚拟目录是在 : /etc/nginx/sites-enabled/default
server {
listen 80 default_server;
listen [::]:80 default_server;
# SSL configuration
#
# listen 443 ssl default_server;
# listen [::]:443 ssl default_server;
#
# Note: You should disable gzip for SSL traffic.
# See: https://bugs.debian.org/773332
#
# Read up on ssl_ciphers to ensure a secure configuration.
# See: https://bugs.debian.org/765782
#
# Self signed certs generated by the ssl-cert package
# Don't use them in a production server!
#
# include snippets/snakeoil.conf;
root /var/www/html;
# Add index.php to the list if you are using PHP
index index.html index.htm index.nginx-debian.html;
server_name _;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ =404;
}
php 命令重启
/etc/init.d/php7.0-fpm restart
- nginx 中 相关配置信息
- 配置 Nginx日志相关信息
- ubuntu中 nginx相关配置
- Nginx中conf的相关配置
- nginx 用lua中获取url路径相关信息
- nginx配置信息详解
- nginx配置信息
- 【Nginx 配置】完整信息
- nginx 配置信息
- nginx服务配置信息
- nginx 相关配置
- Nginx配置相关说明
- nginx+tomcat 配置相关
- nginx容错相关配置
- Nginx 相关配置优化
- nginx配置相关
- nginx mongodb相关配置
- nginx相关配置
- AJAX入门基础
- 常用的git命令和它与github的那些事
- UVALive 7500 Boxes and Balls(模拟,二分)
- 【9605】智力大冲浪
- 安装Python及爬虫入门介绍
- nginx 中 相关配置信息
- 一步一步学调试——gdb命令小结
- 在 Sublime Text 3 中配置编译和运行 Java 程序
- zabbix监控memcache状态
- msysgit和github 结合使用
- spring 的"零配置"支持
- 4 以太网设备
- CSS(一)_语法,选择器,创建
- PHP+swoole+websocket聊天实时通信