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

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


# viewed by Web clients.   

#   

<FilesMatch "^.ht">   

    Order allow,deny   

    Deny from all   

</FilesMatch>  

 

#  

# ErrorLog: The location of the error log file.  

# If you do not specify an ErrorLog directive within a <VirtualHost>  

# container, error messages relating to that virtual host will be  

# logged here.  If you *do* define an error logfile for a <VirtualHost>  

# container, that host's errors will be logged there and not here.  

#   

ErrorLog logs/error.log  

 

#  

# LogLevel: Control the number of messages logged to the error_log.  

# Possible values include: debug, info, notice, warn, error, crit,  

# alert, emerg.  

#   

LogLevel warn   

  

<IfModule log_config_module>  

    #  

    # The following directives define some format nicknames for use with  

    # a CustomLog directive (see below).  

    #   

    LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i"" combined   

    LogFormat "%h %l %u %t "%r" %>s %b" common   

  

    <IfModule logio_module>  

      # You need to enable mod_logio.c to use %I and %O   

      LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i" %I %O" combinedio   

    </IfModule>  

 

    #  

    # The location and format of the access logfile (Common Logfile Format).