1# ServerAdmin: Your address, where problems with the server should be
2# e-mailed.  This address appears on some server-generated pages, such
3# as error documents.  e.g. admin@your-domain.com
4ServerAdmin root@localhost
5
6# DocumentRoot: The directory out of which you will serve your
7# documents. By default, all requests are taken from this directory, but
8# symbolic links and aliases may be used to point to other locations.
9#
10# If you change this to something that isn't under /var/www then suexec
11# will no longer work.
12DocumentRoot "/var/www/localhost/htdocs"
13
14# This should be changed to whatever you set DocumentRoot to.
15<Directory "/var/www/localhost/htdocs">
16	# Possible values for the Options directive are "None", "All",
17	# or any combination of:
18	#   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
19	#
20	# Note that "MultiViews" must be named *explicitly* --- "Options All"
21	# doesn't give it to you.
22	#
23	# The Options directive is both complicated and important.  Please see
24	# http://httpd.apache.org/docs/2.4/mod/core.html#options
25	# for more information.
26	Options Indexes FollowSymLinks
27
28	# AllowOverride controls what directives may be placed in .htaccess files.
29	# It can be "All", "None", or any combination of the keywords:
30	#   Options FileInfo AuthConfig Limit
31	AllowOverride All
32
33	# Controls who can get stuff from this server.
34	Require all granted
35</Directory>
36
37<IfModule alias_module>
38	# Redirect: Allows you to tell clients about documents that used to
39	# exist in your server's namespace, but do not anymore. The client
40	# will make a new request for the document at its new location.
41	# Example:
42	#   Redirect permanent /foo http://www.example.com/bar
43
44	# Alias: Maps web paths into filesystem paths and is used to
45	# access content that does not live under the DocumentRoot.
46	# Example:
47	#   Alias /webpath /full/filesystem/path
48	#
49	# If you include a trailing / on /webpath then the server will
50	# require it to be present in the URL.  You will also likely
51	# need to provide a <Directory> section to allow access to
52	# the filesystem path.
53
54	# ScriptAlias: This controls which directories contain server scripts.
55	# ScriptAliases are essentially the same as Aliases, except that
56	# documents in the target directory are treated as applications and
57	# run by the server when requested rather than as documents sent to the
58	# client.  The same rules about trailing "/" apply to ScriptAlias
59	# directives as to Alias.
60	ScriptAlias /cgi-bin/ "/var/www/localhost/cgi-bin/"
61</IfModule>
62
63# "/var/www/localhost/cgi-bin" should be changed to whatever your ScriptAliased
64# CGI directory exists, if you have that configured.
65<Directory "/var/www/localhost/cgi-bin">
66	AllowOverride None
67	Options None
68	Require all granted
69</Directory>
70
71# vim: ts=4 filetype=apache
72