#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 #
# All of these directives may appear inside
# 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 #
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
# logged here. If you *do* define an error logfile for a
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
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
#
# 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