- 积分
- 48
- 威望
-
- 金钱
-
- 注册时间
- 2015-8-8
- 在线时间
- 小时
- 最后登录
- 1970-1-1
|
楼主 |
发表于 2016-2-2 21:51:51
|
显示全部楼层
回复 5# 的帖子
军哥我把Nginx的端口换了,果然可以打开了,但是现在又遇到一个问题,就是我想把服务器当作一个文件服务器,也就是可以访问某个目录的
我给nginx的配置添加了以下代码
autoindex on;
autoindex_exact_size off;
autoindex_localtime on
然后看了一下 httpd.conf
看到也可以
<Directory "/home/wwwroot/default">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride All
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
但访问就还是
403 Forbidden
You don't have permission to access / on this server. |
|