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

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


#  

#Listen 192.168.1.4:80   

Listen 80  

 

#  

# This configuration file reflects default settings for Apache HTTP Server.  

#  

# You may change these, but chances are that you may not need to.  

#  

 

#  

# Timeout: The number of seconds before receives and sends time out.  

#   

Timeout 300  

 

#  

# KeepAlive: Whether or not to allow persistent connections (more than  

# one request per connection). Set to "Off" to deactivate.  

#   

KeepAlive On  

 

#  

# MaxKeepAliveRequests: The maximum number of requests to allow  

# during a persistent connection. Set to 0 to allow an unlimited amount.  

# We recommend you leave this number high, for maximum performance.  

#   

MaxKeepAliveRequests 100  

 

#  

# KeepAliveTimeout: Number of seconds to wait for the next request from the  

# same client on the same connection.  

#   

KeepAliveTimeout 5  

 

#  

# UseCanonicalName: Determines how Apache constructs self-referencing   

# URLs and the SERVER_NAME and SERVER_PORT variables.  

# When set "Off", Apache will use the Hostname and Port supplied  

# by the client.  When set "On", Apache will use the value of the  

# ServerName directive.  

#   

UseCanonicalName Off  

 

#  

# AccessFileName: The name of the file to look for in each directory  

# for additional configuration directives.  See also the AllowOverride   

# directive.  

#