apache设置IP访问
原创
©著作权归作者所有:来自51CTO博客作者wx5f8d5a7b525f9的原创作品,请联系作者获取转载授权,否则将追究法律责任
今天,我将暑期给财经学院做的网站搭建到机房主机上,搭建过程中遇到一点小小的问题。
apache 默认仅允许 localhost 访问,现如今要让学院领导们看到,所以需要设置IP访问,所以需要更改httpd.conf的一些设置
<Directory "D:/wamp/www/xxoo">
#
# 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.4/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# AllowOverride FileInfo AuthConfig Limit
#
AllowOverride All
#
# Controls who can get stuff from this server.
#
# Require all granted
# onlineoffline tag - don't remove
Order Deny,Allow
#Deny from all
Allow from all #全部允许,主要是这步,否则不能使用IP访问
#Allow from ::1
#Allow from localhost
</Directory>