wifidog移植及认证服务器搭建(3)

2019-08-31 13:24

#LoadModule dav_module modules/mod_dav.so LoadModule status_module modules/mod_status.so

LoadModule autoindex_module modules/mod_autoindex.so #LoadModule info_module modules/mod_info.so #LoadModule cgid_module modules/mod_cgid.so #LoadModule dav_fs_module modules/mod_dav_fs.so

#LoadModule vhost_alias_module modules/mod_vhost_alias.so #LoadModule negotiation_module modules/mod_negotiation.so LoadModule dir_module modules/mod_dir.so

#LoadModule actions_module modules/mod_actions.so #LoadModule speling_module modules/mod_speling.so #LoadModule userdir_module modules/mod_userdir.so LoadModule alias_module modules/mod_alias.so

LoadModule rewrite_module modules/mod_rewrite.so LoadModule php5_module modules/libphp5.so

#

# If you wish httpd to run as a different user or group, you must run # httpd as root initially and it will switch. #

# User/Group: The name (or #number) of the user/group to run httpd as. # It is usually good practice to create a dedicated user and group for # running httpd, as with most system services. #

User daemon Group daemon

# 'Main' server configuration #

# The directives in this section set up the values used by the 'main' # server, which responds to any requests that aren't handled by a # definition. These values also provide defaults for # any containers you may define later in the file. #

# All of these directives may appear inside containers, # in which case these default settings will be overridden for the # virtual host being defined. # #

# ServerAdmin: Your address, where problems with the server should be

# e-mailed. This address appears on some server-generated pages, such # as error documents. e.g. admin@your-domain.com #

ServerAdmin you@example.com #

# 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 localhost:80 #

# Deny access to the entirety of your server's filesystem. You must # explicitly permit access to web content directories in other # blocks below. #

AllowOverride none Require all granted #

# 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. # #

# 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 \

# Possible values for the Options directive are \ # or any combination of:

# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews #

# Note that \

# 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 \ # AllowOverride FileInfo AuthConfig Limit #

AllowOverride None

#

# Controls who can get stuff from this server. #

Require all granted #

# DirectoryIndex: sets the file that Apache will serve if a directory # is requested. #

DirectoryIndex index.html #

# The following lines prevent .htaccess and .htpasswd files from being # viewed by Web clients. #

Require all denied #

# ErrorLog: The location of the error log file.

# If you do not specify an ErrorLog directive within a # container, error messages relating to that virtual host will be

# logged here. If you *do* define an error logfile for a # container, that host's errors will be logged there and not here. #

ErrorLog \ #

# LogLevel: Control the number of messages logged to the error_log. # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. #

LogLevel warn

#

# The following directives define some format nicknames for use with # a CustomLog directive (see below). #

LogFormat \ LogFormat \

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

LogFormat \%l %u %t \\\%>s %b \\\\\\%I %O\combinedio

#

# The location and format of the access logfile (Common Logfile Format). # If you do not define any access logfiles within a # container, they will be logged here. Contrariwise, if you *do* # define per- access logfiles, transactions will be # logged therein and *not* in this file. #

CustomLog \

#

# If you prefer a logfile with access, agent, and referer information # (Combined Logfile Format) you can use the following directive. #

#CustomLog \

#

# Redirect: Allows you to tell clients about documents that used to # exist in your server's namespace, but do not anymore. The client # will make a new request for the document at its new location.

# Example:

# Redirect permanent /foo http://www.example.com/bar

#

# Alias: Maps web paths into filesystem paths and is used to # access content that does not live under the DocumentRoot. # Example:

# Alias /webpath /full/filesystem/path #

# If you include a trailing / on /webpath then the server will # require it to be present in the URL. You will also likely # need to provide a section to allow access to # the filesystem path.

#

# ScriptAlias: This controls which directories contain server scripts. # ScriptAliases are essentially the same as Aliases, except that

# documents in the target directory are treated as applications and

# run by the server when requested rather than as documents sent to the # client. The same rules about trailing \ # directives as to Alias. #

ScriptAlias /cgi-bin/ \

#

# ScriptSock: On threaded servers, designate the path to the UNIX # socket used to communicate with the CGI daemon of mod_cgid. #

#Scriptsock cgisock #

# \# CGI directory exists, if you have that configured. #

Require all granted


wifidog移植及认证服务器搭建(3).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:全新版大学英语综合教程4[第二版]翻译答案 3

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: