Nginx浏览本地目录设置
2014-01-08 09:53
344 查看
老是记不住,干脆放在这里记录下来。
server {
listen 81;
server_name localhost;
location = /favicon.ico {
log_not_found off;
log_subrequest off;
}
location ^~ /log {
alias /home/dist;
autoindex on;
autoindex_exact_size off;
autoindex_localtime on;
}
}
参考:
http://nginxlibrary.com/enable-directory-listing/
server {
listen 81;
server_name localhost;
location = /favicon.ico {
log_not_found off;
log_subrequest off;
}
location ^~ /log {
alias /home/dist;
autoindex on;
autoindex_exact_size off;
autoindex_localtime on;
}
}
参考:
http://nginxlibrary.com/enable-directory-listing/
相关文章推荐
- CentOS-6.3安装配置Nginx
- linux中Apache更Nginx环境配置教程
- nginx配置虚拟主机,仅限制内网通过phpMyAdmin访问mysql
- Nginx介绍及视频教程
- nginx 499状态码问题
- nginx,php日志分割
- 实战Nginx与PHP(FastCGI)的安装、配置与优化
- 使用nginx支持php
- nginx+nagios,执行命令就报错:upstream prematurely closed FastCGI stdout while reading resp
- Nginx 一些常用的URL 重写方法
- nginx 代理模式下,获取客户端真实IP
- nginx php
- Nginx中conf相关配置的简要说明
- Nginx下配置SSL安全协议
- Nginx在windows2003下的使用 PHP
- Web服务器排行:Nginx超越Apache 成为全球TOP 1000网站最常用的Web Server
- nginx代理 获取不到客户端的真实IP问题
- nginx中proxy_set_header Host $host;的作用
- nginx服务器在IE下载时,apk,ipa文件变成zip的解决方法
- select与epoll、apache与nginx实现原理对比