apache 局域网访问配置方案第1/2页

2019-10-15 22:06:41于丽


 

#  

# ServerName gives the name and port that the server uses to identify itself.  

# This can often be determined automatically, but we recommend you specify  

# it explicitly to prevent problems during startup.  

#  

# If your host doesn't have a registered DNS name, enter its IP address here.  

#   

ServerName 192.168.1.4  

#BindAddress 192.168.1.4   

 

#  

# DocumentRoot: The directory out of which you will serve your  

# documents. By default, all requests are taken from this directory, but  

# symbolic links and aliases may be used to point to other locations.  

#   

DocumentRoot "g:/AppServ/www" 

 

#  

# 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 FollowSymLinks ExecCGI Indexes   

    AllowOverride None   

    Order deny,allow   

    Deny from all   

    Satisfy all   

</Directory>  

 

#  

# Note that from this point forward you must specifically allow  

# particular features to be enabled - so if something's not working as  

# you might expect, make sure that you have specifically enabled it  

# below.  

#  

 

#  

# This should be changed to whatever you set DocumentRoot to.