- 积分
- 0
- 威望
-
- 金钱
-
- 注册时间
- 2014-4-21
- 在线时间
- 小时
- 最后登录
- 1970-1-1
|
发表于 2014-4-21 10:56:40
|
显示全部楼层
回复 1# 的帖子
lnmpa 环境下是怎么实现开启索引目录的?
因为我做的内网服务器,所以没办法给出地址。
其中有一个目录是中文名称,有几千个文件,大都中文名,供内网用户方便下载使用!
修改/usr/local/apache/conf/httpd.conf 为
- DocumentRoot "/home/wwwroot/default"
- #
- # Each directory to which Apache has access can be configured with respect
- # to which services and features are allowed and/or disabled in that
- # directory (and its subdirectories).
- #
- # First, we configure the "default" to be a very restrictive set of
- # features.
- #
- <Directory />
- Options ExecCGI FollowSymLinks Includes IncludesNOEXEC Indexes -MultiViews SymLinksIfOwnerMatch
- AllowOverride All
- Order allow,deny
- Allow from all
- </Directory>
复制代码
修改/usr/local/nginx/conf/nginx.conf 为
- listen 80;
- server_name www.lnmp.org;
- index index.html index.htm index.php;
- root /home/wwwroot/default;
- autoindex on;
- autoindex_exact_size off;
- autoindex_localtime on;
复制代码
以上修改都没有作用,到底该怎么修改?
[ 本帖最后由 hsxxzn 于 2014-4-21 11:04 编辑 ] |
|