Nginx服务器配置首页
来源:互联网 发布:阿里云部署ftp服务器 编辑:程序博客网 时间:2024/05/17 04:39
Nginx安装完成之后,在/user/local/nginx/nginx.conf可以配置首页!
在server配置自己的默认首页!
server 61 { // 监听端口,默认是80,为了不与HTTP端口冲突,最好改下 62 listen 80 default_server; 63 #listen [::]:80 default_server ipv6only=on; 64 server_name www.lnmp.org; 65 index index.html index.htm index.php; // 指定首页的访问位置,只需要修改成index.html的所在目录 66 #root /home/wwwroot/default; 67 root /usr/local/nginx/html; 68 #error_page 404 /404.html; 69 include enable-php.conf; 70 71 location /nginx_status 72 { 73 access_log off; 74 } 75 76 location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ 77 { 78 expires 30d; 79 } 80 81 location ~ .*\.(js|css)?$ 82 { 83 expires 12h; 84 } 85 86 location ~ /\. 87 { 88 deny all; } }
0 0
- Nginx服务器配置首页
- nginx配置默认首页
- Nginx 服务器配置问题,首页 403 及提示下载的解决方法
- 配置Nginx服务器虚拟目录
- nginx服务器的配置
- Nginx缓存服务器配置
- nginx配置图片服务器
- nginx服务器配置
- Nginx配置https服务器
- nginx 配置HTTPS服务器
- nginx配置图片服务器
- Nginx服务器配置指令
- Nginx服务器基本配置
- Nginx配置服务器SSI
- nginx服务器配置详解
- nginx服务器的配置
- 服务器nginx+nodejs配置
- nginx配置https服务器
- 按键消抖
- XmlPullParser的unexpected token 还有async task的问题
- MySQL Binlog的介绍
- Linux VPS安装Windows系统后开启远程连接桌面任务设置
- 米斯特白帽培训讲义(v2)漏洞篇 文件包含
- Nginx服务器配置首页
- Regular Expression Matching问题及解法
- go函数类型讲解
- RecyclerView解决条目错乱以及图片闪越+三级缓存机制
- 欢迎使用CSDN-markdown编辑器
- 脚本执行错误---binsh^M:损坏的解释器 没有那个文件或目录
- poj 3264 Balanced Lineup(线段树,ST算法)
- 【Matlab】笔记(3)——控制系统模型转化
- 给程序员的18个简短的忠告