Refactor
This commit is contained in:
parent
70ca1f65db
commit
5bff8ddea3
|
@ -4,22 +4,29 @@ public class AugeasTests
|
||||||
{
|
{
|
||||||
private Augeas _augeas;
|
private Augeas _augeas;
|
||||||
|
|
||||||
|
public static string RandomString(int length)
|
||||||
|
{
|
||||||
|
var random = new Random();
|
||||||
|
const string chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
|
||||||
|
return new string(Enumerable.Repeat(chars, length)
|
||||||
|
.Select(s => s[random.Next(s.Length)]).ToArray());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
[SetUp]
|
[SetUp]
|
||||||
public void Setup()
|
public void Setup()
|
||||||
{
|
{
|
||||||
var rootDir = Environment.CurrentDirectory + "/root";
|
var rootDir = Environment.CurrentDirectory + "/root";
|
||||||
var lensDir = Environment.CurrentDirectory + "/lens";
|
var lensDir = Environment.CurrentDirectory + "/lens";
|
||||||
_augeas = new Augeas(new AugSettings(rootDir, lensDir));
|
_augeas = new Augeas(new AugSettings(rootDir, lensDir));
|
||||||
_augeas.LoadFile("/etc/apache2/sites-available/00-ci.codeliturgy.com.conf");
|
_augeas.LoadFile("/etc/apache2/sites-available/example.com.conf");
|
||||||
_augeas.LoadFile("/etc/apache2/sites-available/02-codeliturgy.com.conf");
|
_augeas.LoadFile("/etc/apache2/sites-available/example2.com.conf");
|
||||||
|
|
||||||
// Load a bunch of files
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void NoExceptionThrownWhenPrintingVirtualhostTree()
|
public void NoExceptionThrownWhenPrintingVirtualhostTree()
|
||||||
{
|
{
|
||||||
var virtualHostConfig = "/etc/apache2/sites-available/00-ci.codeliturgy.com.conf";
|
var virtualHostConfig = "/etc/apache2/sites-available/example.com.conf";
|
||||||
_augeas.PrintVirtualHostTree(virtualHostConfig);
|
_augeas.PrintVirtualHostTree(virtualHostConfig);
|
||||||
Assert.Pass();
|
Assert.Pass();
|
||||||
}
|
}
|
||||||
|
@ -27,7 +34,7 @@ public class AugeasTests
|
||||||
[Test]
|
[Test]
|
||||||
public void NoExceptionThrownWhenPrintingPreview()
|
public void NoExceptionThrownWhenPrintingPreview()
|
||||||
{
|
{
|
||||||
var virtualHostConfig = "/etc/apache2/sites-available/00-ci.codeliturgy.com.conf";
|
var virtualHostConfig = "/etc/apache2/sites-available/example.com.conf";
|
||||||
_augeas.PrintPreview(virtualHostConfig);
|
_augeas.PrintPreview(virtualHostConfig);
|
||||||
Assert.Pass();
|
Assert.Pass();
|
||||||
|
|
||||||
|
@ -37,13 +44,55 @@ public class AugeasTests
|
||||||
public void GetPreviewReturnsValid()
|
public void GetPreviewReturnsValid()
|
||||||
{
|
{
|
||||||
|
|
||||||
var preview = _augeas.GetPreview("/files/etc/apache2/sites-available/00-ci.codeliturgy.com.conf");
|
var preview = _augeas.GetPreview("/files/etc/apache2/sites-available/example.com.conf");
|
||||||
var stringInvalid = string.IsNullOrEmpty(preview);
|
var stringInvalid = string.IsNullOrEmpty(preview);
|
||||||
Assert.That(!stringInvalid);
|
Assert.That(!stringInvalid);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
[Test]
|
||||||
|
public void AfterSettingNodeGetNodeReturnsNewValue()
|
||||||
|
{
|
||||||
|
|
||||||
|
var nodePath = $"/files/etc/apache2/sites-available/example.com.conf/VirtualHost/directive[1]/arg";
|
||||||
|
var newValue = "example.com";
|
||||||
|
_augeas.SetNode(nodePath, newValue);
|
||||||
|
var retrieveVal = _augeas.GetNode(nodePath);
|
||||||
|
Assert.That(retrieveVal == newValue);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
[Test]
|
||||||
|
public void SettingNodeAndSave()
|
||||||
|
{
|
||||||
|
|
||||||
|
var nodePath = $"/files/etc/apache2/sites-available/example.com.conf/VirtualHost/directive[1]/arg";
|
||||||
|
var newValue = RandomString(10);
|
||||||
|
_augeas.SetNode(nodePath, newValue);
|
||||||
|
var successSaving = _augeas.Save();
|
||||||
|
if (!successSaving)
|
||||||
|
{
|
||||||
|
Assert.Fail("Unable to write changes to disk.");
|
||||||
|
}
|
||||||
|
var retrieveVal = _augeas.GetNode(nodePath);
|
||||||
|
Assert.That(retrieveVal == newValue);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
[Test]
|
||||||
|
public void InsertNode()
|
||||||
|
{
|
||||||
|
|
||||||
|
var nodePath = $"/files/etc/apache2/sites-available/example.com.conf/VirtualHost/directive[3]";
|
||||||
|
_augeas.InsertNode(nodePath, "Test");
|
||||||
|
var node = _augeas.GetNode(nodePath);
|
||||||
|
|
||||||
|
Assert.Pass();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void MatchReturnsTwoSites()
|
public void MatchReturnsTwoSites()
|
||||||
|
@ -57,7 +106,7 @@ public class AugeasTests
|
||||||
[Test]
|
[Test]
|
||||||
public void GetTreeVirtualHostReturnsDictionaryWithKeys()
|
public void GetTreeVirtualHostReturnsDictionaryWithKeys()
|
||||||
{
|
{
|
||||||
var path = "/etc/apache2/sites-available/00-ci.codeliturgy.com.conf";
|
var path = "/etc/apache2/sites-available/example.com.conf";
|
||||||
var tree = _augeas.GetVirtualHostTree(path);
|
var tree = _augeas.GetVirtualHostTree(path);
|
||||||
Assert.That(tree.Count > 0);
|
Assert.That(tree.Count > 0);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
ServerName www.codeliturgy.com
|
ServerName www.example2.com
|
||||||
# This is the main Apache server configuration file. It contains the
|
# This is the main Apache server configuration file. It contains the
|
||||||
# configuration directives that give the server its instructions.
|
# configuration directives that give the server its instructions.
|
||||||
# See http://httpd.apache.org/docs/2.4/ for detailed information about
|
# See http://httpd.apache.org/docs/2.4/ for detailed information about
|
||||||
|
|
|
@ -1,8 +0,0 @@
|
||||||
# Read the documentation before enabling AddDefaultCharset.
|
|
||||||
# In general, it is only a good idea if you know that all your files
|
|
||||||
# have this encoding. It will override any encoding given in the files
|
|
||||||
# in meta http-equiv or xml encoding tags.
|
|
||||||
|
|
||||||
#AddDefaultCharset UTF-8
|
|
||||||
|
|
||||||
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
|
|
|
@ -1,81 +0,0 @@
|
||||||
# Customizable error responses come in three flavors:
|
|
||||||
# 1) plain text
|
|
||||||
# 2) local redirects
|
|
||||||
# 3) external redirects
|
|
||||||
#
|
|
||||||
# Some examples:
|
|
||||||
#ErrorDocument 500 "The server made a boo boo."
|
|
||||||
#ErrorDocument 404 /missing.html
|
|
||||||
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
|
|
||||||
#ErrorDocument 402 http://www.example.com/subscription_info.html
|
|
||||||
#
|
|
||||||
|
|
||||||
#
|
|
||||||
# Putting this all together, we can internationalize error responses.
|
|
||||||
#
|
|
||||||
# We use Alias to redirect any /error/HTTP_<error>.html.var response to
|
|
||||||
# our collection of by-error message multi-language collections. We use
|
|
||||||
# includes to substitute the appropriate text.
|
|
||||||
#
|
|
||||||
# You can modify the messages' appearance without changing any of the
|
|
||||||
# default HTTP_<error>.html.var files by adding the line:
|
|
||||||
#
|
|
||||||
#Alias /error/include/ "/your/include/path/"
|
|
||||||
#
|
|
||||||
# which allows you to create your own set of files by starting with the
|
|
||||||
# /usr/share/apache2/error/include/ files and copying them to /your/include/path/,
|
|
||||||
# even on a per-VirtualHost basis. If you include the Alias in the global server
|
|
||||||
# context, is has to come _before_ the 'Alias /error/ ...' line.
|
|
||||||
#
|
|
||||||
# The default include files will display your Apache version number and your
|
|
||||||
# ServerAdmin email address regardless of the setting of ServerSignature.
|
|
||||||
#
|
|
||||||
# WARNING: The configuration below will NOT work out of the box if you have a
|
|
||||||
# SetHandler directive in a <Location /> context somewhere. Adding
|
|
||||||
# the following three lines AFTER the <Location /> context should
|
|
||||||
# make it work in most cases:
|
|
||||||
# <Location /error/>
|
|
||||||
# SetHandler none
|
|
||||||
# </Location>
|
|
||||||
#
|
|
||||||
# The internationalized error documents require mod_alias, mod_include
|
|
||||||
# and mod_negotiation. To activate them, uncomment the following 37 lines.
|
|
||||||
|
|
||||||
#<IfModule mod_negotiation.c>
|
|
||||||
# <IfModule mod_include.c>
|
|
||||||
# <IfModule mod_alias.c>
|
|
||||||
#
|
|
||||||
# Alias /error/ "/usr/share/apache2/error/"
|
|
||||||
#
|
|
||||||
# <Directory "/usr/share/apache2/error">
|
|
||||||
# Options IncludesNoExec
|
|
||||||
# AddOutputFilter Includes html
|
|
||||||
# AddHandler type-map var
|
|
||||||
# Order allow,deny
|
|
||||||
# Allow from all
|
|
||||||
# LanguagePriority en cs de es fr it nl sv pt-br ro
|
|
||||||
# ForceLanguagePriority Prefer Fallback
|
|
||||||
# </Directory>
|
|
||||||
#
|
|
||||||
# ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
|
|
||||||
# ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
|
|
||||||
# ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
|
|
||||||
# ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
|
|
||||||
# ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
|
|
||||||
# ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
|
|
||||||
# ErrorDocument 410 /error/HTTP_GONE.html.var
|
|
||||||
# ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
|
|
||||||
# ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
|
|
||||||
# ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
|
|
||||||
# ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
|
|
||||||
# ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
|
|
||||||
# ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
|
|
||||||
# ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
|
|
||||||
# ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
|
|
||||||
# ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
|
|
||||||
# ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var
|
|
||||||
# </IfModule>
|
|
||||||
# </IfModule>
|
|
||||||
#</IfModule>
|
|
||||||
|
|
||||||
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
|
|
|
@ -1,4 +0,0 @@
|
||||||
# Define an access log for VirtualHosts that don't define their own logfile
|
|
||||||
CustomLog ${APACHE_LOG_DIR}/other_vhosts_access.log vhost_combined
|
|
||||||
|
|
||||||
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
|
|
|
@ -1,73 +0,0 @@
|
||||||
#
|
|
||||||
# Disable access to the entire file system except for the directories that
|
|
||||||
# are explicitly allowed later.
|
|
||||||
#
|
|
||||||
# This currently breaks the configurations that come with some web application
|
|
||||||
# Debian packages.
|
|
||||||
#
|
|
||||||
#<Directory />
|
|
||||||
# AllowOverride None
|
|
||||||
# Require all denied
|
|
||||||
#</Directory>
|
|
||||||
|
|
||||||
|
|
||||||
# Changing the following options will not really affect the security of the
|
|
||||||
# server, but might make attacks slightly more difficult in some cases.
|
|
||||||
|
|
||||||
#
|
|
||||||
# ServerTokens
|
|
||||||
# This directive configures what you return as the Server HTTP response
|
|
||||||
# Header. The default is 'Full' which sends information about the OS-Type
|
|
||||||
# and compiled in modules.
|
|
||||||
# Set to one of: Full | OS | Minimal | Minor | Major | Prod
|
|
||||||
# where Full conveys the most information, and Prod the least.
|
|
||||||
#ServerTokens Minimal
|
|
||||||
ServerTokens Prod
|
|
||||||
#ServerTokens Full
|
|
||||||
|
|
||||||
#
|
|
||||||
# Optionally add a line containing the server version and virtual host
|
|
||||||
# name to server-generated pages (internal error documents, FTP directory
|
|
||||||
# listings, mod_status and mod_info output etc., but not CGI generated
|
|
||||||
# documents or custom error documents).
|
|
||||||
# Set to "EMail" to also include a mailto: link to the ServerAdmin.
|
|
||||||
# Set to one of: On | Off | EMail
|
|
||||||
#ServerSignature Off
|
|
||||||
ServerSignature Off
|
|
||||||
|
|
||||||
#
|
|
||||||
# Allow TRACE method
|
|
||||||
#
|
|
||||||
# Set to "extended" to also reflect the request body (only for testing and
|
|
||||||
# diagnostic purposes).
|
|
||||||
#
|
|
||||||
# Set to one of: On | Off | extended
|
|
||||||
TraceEnable Off
|
|
||||||
#TraceEnable On
|
|
||||||
|
|
||||||
#
|
|
||||||
# Forbid access to version control directories
|
|
||||||
#
|
|
||||||
# If you use version control systems in your document root, you should
|
|
||||||
# probably deny access to their directories. For example, for subversion:
|
|
||||||
#
|
|
||||||
#<DirectoryMatch "/\.svn">
|
|
||||||
# Require all denied
|
|
||||||
#</DirectoryMatch>
|
|
||||||
|
|
||||||
#
|
|
||||||
# Setting this header will prevent MSIE from interpreting files as something
|
|
||||||
# else than declared by the content type in the HTTP headers.
|
|
||||||
# Requires mod_headers to be enabled.
|
|
||||||
#
|
|
||||||
#Header set X-Content-Type-Options: "nosniff"
|
|
||||||
|
|
||||||
#
|
|
||||||
# Setting this header will prevent other sites from embedding pages from this
|
|
||||||
# site as frames. This defends against clickjacking attacks.
|
|
||||||
# Requires mod_headers to be enabled.
|
|
||||||
#
|
|
||||||
#Header set X-Frame-Options: "sameorigin"
|
|
||||||
|
|
||||||
|
|
||||||
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
|
|
|
@ -1,20 +0,0 @@
|
||||||
<IfModule mod_alias.c>
|
|
||||||
<IfModule mod_cgi.c>
|
|
||||||
Define ENABLE_USR_LIB_CGI_BIN
|
|
||||||
</IfModule>
|
|
||||||
|
|
||||||
<IfModule mod_cgid.c>
|
|
||||||
Define ENABLE_USR_LIB_CGI_BIN
|
|
||||||
</IfModule>
|
|
||||||
|
|
||||||
<IfDefine ENABLE_USR_LIB_CGI_BIN>
|
|
||||||
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
|
|
||||||
<Directory "/usr/lib/cgi-bin">
|
|
||||||
AllowOverride None
|
|
||||||
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
|
|
||||||
Require all granted
|
|
||||||
</Directory>
|
|
||||||
</IfDefine>
|
|
||||||
</IfModule>
|
|
||||||
|
|
||||||
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
|
|
|
@ -1,8 +0,0 @@
|
||||||
# Read the documentation before enabling AddDefaultCharset.
|
|
||||||
# In general, it is only a good idea if you know that all your files
|
|
||||||
# have this encoding. It will override any encoding given in the files
|
|
||||||
# in meta http-equiv or xml encoding tags.
|
|
||||||
|
|
||||||
#AddDefaultCharset UTF-8
|
|
||||||
|
|
||||||
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
|
|
|
@ -1,81 +0,0 @@
|
||||||
# Customizable error responses come in three flavors:
|
|
||||||
# 1) plain text
|
|
||||||
# 2) local redirects
|
|
||||||
# 3) external redirects
|
|
||||||
#
|
|
||||||
# Some examples:
|
|
||||||
#ErrorDocument 500 "The server made a boo boo."
|
|
||||||
#ErrorDocument 404 /missing.html
|
|
||||||
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
|
|
||||||
#ErrorDocument 402 http://www.example.com/subscription_info.html
|
|
||||||
#
|
|
||||||
|
|
||||||
#
|
|
||||||
# Putting this all together, we can internationalize error responses.
|
|
||||||
#
|
|
||||||
# We use Alias to redirect any /error/HTTP_<error>.html.var response to
|
|
||||||
# our collection of by-error message multi-language collections. We use
|
|
||||||
# includes to substitute the appropriate text.
|
|
||||||
#
|
|
||||||
# You can modify the messages' appearance without changing any of the
|
|
||||||
# default HTTP_<error>.html.var files by adding the line:
|
|
||||||
#
|
|
||||||
#Alias /error/include/ "/your/include/path/"
|
|
||||||
#
|
|
||||||
# which allows you to create your own set of files by starting with the
|
|
||||||
# /usr/share/apache2/error/include/ files and copying them to /your/include/path/,
|
|
||||||
# even on a per-VirtualHost basis. If you include the Alias in the global server
|
|
||||||
# context, is has to come _before_ the 'Alias /error/ ...' line.
|
|
||||||
#
|
|
||||||
# The default include files will display your Apache version number and your
|
|
||||||
# ServerAdmin email address regardless of the setting of ServerSignature.
|
|
||||||
#
|
|
||||||
# WARNING: The configuration below will NOT work out of the box if you have a
|
|
||||||
# SetHandler directive in a <Location /> context somewhere. Adding
|
|
||||||
# the following three lines AFTER the <Location /> context should
|
|
||||||
# make it work in most cases:
|
|
||||||
# <Location /error/>
|
|
||||||
# SetHandler none
|
|
||||||
# </Location>
|
|
||||||
#
|
|
||||||
# The internationalized error documents require mod_alias, mod_include
|
|
||||||
# and mod_negotiation. To activate them, uncomment the following 37 lines.
|
|
||||||
|
|
||||||
#<IfModule mod_negotiation.c>
|
|
||||||
# <IfModule mod_include.c>
|
|
||||||
# <IfModule mod_alias.c>
|
|
||||||
#
|
|
||||||
# Alias /error/ "/usr/share/apache2/error/"
|
|
||||||
#
|
|
||||||
# <Directory "/usr/share/apache2/error">
|
|
||||||
# Options IncludesNoExec
|
|
||||||
# AddOutputFilter Includes html
|
|
||||||
# AddHandler type-map var
|
|
||||||
# Order allow,deny
|
|
||||||
# Allow from all
|
|
||||||
# LanguagePriority en cs de es fr it nl sv pt-br ro
|
|
||||||
# ForceLanguagePriority Prefer Fallback
|
|
||||||
# </Directory>
|
|
||||||
#
|
|
||||||
# ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
|
|
||||||
# ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
|
|
||||||
# ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
|
|
||||||
# ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
|
|
||||||
# ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
|
|
||||||
# ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
|
|
||||||
# ErrorDocument 410 /error/HTTP_GONE.html.var
|
|
||||||
# ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
|
|
||||||
# ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
|
|
||||||
# ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
|
|
||||||
# ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
|
|
||||||
# ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
|
|
||||||
# ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
|
|
||||||
# ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
|
|
||||||
# ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
|
|
||||||
# ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
|
|
||||||
# ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var
|
|
||||||
# </IfModule>
|
|
||||||
# </IfModule>
|
|
||||||
#</IfModule>
|
|
||||||
|
|
||||||
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
|
|
|
@ -1,4 +0,0 @@
|
||||||
# Define an access log for VirtualHosts that don't define their own logfile
|
|
||||||
CustomLog ${APACHE_LOG_DIR}/other_vhosts_access.log vhost_combined
|
|
||||||
|
|
||||||
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
|
|
|
@ -1,73 +0,0 @@
|
||||||
#
|
|
||||||
# Disable access to the entire file system except for the directories that
|
|
||||||
# are explicitly allowed later.
|
|
||||||
#
|
|
||||||
# This currently breaks the configurations that come with some web application
|
|
||||||
# Debian packages.
|
|
||||||
#
|
|
||||||
#<Directory />
|
|
||||||
# AllowOverride None
|
|
||||||
# Require all denied
|
|
||||||
#</Directory>
|
|
||||||
|
|
||||||
|
|
||||||
# Changing the following options will not really affect the security of the
|
|
||||||
# server, but might make attacks slightly more difficult in some cases.
|
|
||||||
|
|
||||||
#
|
|
||||||
# ServerTokens
|
|
||||||
# This directive configures what you return as the Server HTTP response
|
|
||||||
# Header. The default is 'Full' which sends information about the OS-Type
|
|
||||||
# and compiled in modules.
|
|
||||||
# Set to one of: Full | OS | Minimal | Minor | Major | Prod
|
|
||||||
# where Full conveys the most information, and Prod the least.
|
|
||||||
#ServerTokens Minimal
|
|
||||||
ServerTokens Prod
|
|
||||||
#ServerTokens Full
|
|
||||||
|
|
||||||
#
|
|
||||||
# Optionally add a line containing the server version and virtual host
|
|
||||||
# name to server-generated pages (internal error documents, FTP directory
|
|
||||||
# listings, mod_status and mod_info output etc., but not CGI generated
|
|
||||||
# documents or custom error documents).
|
|
||||||
# Set to "EMail" to also include a mailto: link to the ServerAdmin.
|
|
||||||
# Set to one of: On | Off | EMail
|
|
||||||
#ServerSignature Off
|
|
||||||
ServerSignature Off
|
|
||||||
|
|
||||||
#
|
|
||||||
# Allow TRACE method
|
|
||||||
#
|
|
||||||
# Set to "extended" to also reflect the request body (only for testing and
|
|
||||||
# diagnostic purposes).
|
|
||||||
#
|
|
||||||
# Set to one of: On | Off | extended
|
|
||||||
TraceEnable Off
|
|
||||||
#TraceEnable On
|
|
||||||
|
|
||||||
#
|
|
||||||
# Forbid access to version control directories
|
|
||||||
#
|
|
||||||
# If you use version control systems in your document root, you should
|
|
||||||
# probably deny access to their directories. For example, for subversion:
|
|
||||||
#
|
|
||||||
#<DirectoryMatch "/\.svn">
|
|
||||||
# Require all denied
|
|
||||||
#</DirectoryMatch>
|
|
||||||
|
|
||||||
#
|
|
||||||
# Setting this header will prevent MSIE from interpreting files as something
|
|
||||||
# else than declared by the content type in the HTTP headers.
|
|
||||||
# Requires mod_headers to be enabled.
|
|
||||||
#
|
|
||||||
#Header set X-Content-Type-Options: "nosniff"
|
|
||||||
|
|
||||||
#
|
|
||||||
# Setting this header will prevent other sites from embedding pages from this
|
|
||||||
# site as frames. This defends against clickjacking attacks.
|
|
||||||
# Requires mod_headers to be enabled.
|
|
||||||
#
|
|
||||||
#Header set X-Frame-Options: "sameorigin"
|
|
||||||
|
|
||||||
|
|
||||||
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
|
|
|
@ -1,20 +0,0 @@
|
||||||
<IfModule mod_alias.c>
|
|
||||||
<IfModule mod_cgi.c>
|
|
||||||
Define ENABLE_USR_LIB_CGI_BIN
|
|
||||||
</IfModule>
|
|
||||||
|
|
||||||
<IfModule mod_cgid.c>
|
|
||||||
Define ENABLE_USR_LIB_CGI_BIN
|
|
||||||
</IfModule>
|
|
||||||
|
|
||||||
<IfDefine ENABLE_USR_LIB_CGI_BIN>
|
|
||||||
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
|
|
||||||
<Directory "/usr/lib/cgi-bin">
|
|
||||||
AllowOverride None
|
|
||||||
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
|
|
||||||
Require all granted
|
|
||||||
</Directory>
|
|
||||||
</IfDefine>
|
|
||||||
</IfModule>
|
|
||||||
|
|
||||||
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
|
|
|
@ -1,2 +0,0 @@
|
||||||
# Depends: authn_core
|
|
||||||
LoadModule access_compat_module /usr/lib/apache2/modules/mod_access_compat.so
|
|
|
@ -1,11 +0,0 @@
|
||||||
# a2enmod-note: needs-configuration
|
|
||||||
|
|
||||||
#
|
|
||||||
# Action lets you define media types that will execute a script whenever
|
|
||||||
# a matching file is called. This eliminates the need for repeated URL
|
|
||||||
# pathnames for oft-used CGI file processors.
|
|
||||||
# Format: Action media/type /cgi-script/location
|
|
||||||
# Format: Action handler-name /cgi-script/location
|
|
||||||
#
|
|
||||||
|
|
||||||
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
|
|
|
@ -1 +0,0 @@
|
||||||
LoadModule actions_module /usr/lib/apache2/modules/mod_actions.so
|
|
|
@ -1,24 +0,0 @@
|
||||||
<IfModule alias_module>
|
|
||||||
# Aliases: Add here as many aliases as you need (with no limit). The format is
|
|
||||||
# Alias fakename realname
|
|
||||||
#
|
|
||||||
# Note that if you include a trailing / on fakename then the server will
|
|
||||||
# require it to be present in the URL. So "/icons" isn't aliased in this
|
|
||||||
# example, only "/icons/". If the fakename is slash-terminated, then the
|
|
||||||
# realname must also be slash terminated, and if the fakename omits the
|
|
||||||
# trailing slash, the realname must also omit it.
|
|
||||||
#
|
|
||||||
# We include the /icons/ alias for FancyIndexed directory listings. If
|
|
||||||
# you do not use FancyIndexing, you may comment this out.
|
|
||||||
|
|
||||||
Alias /icons/ "/usr/share/apache2/icons/"
|
|
||||||
|
|
||||||
<Directory "/usr/share/apache2/icons">
|
|
||||||
Options FollowSymlinks
|
|
||||||
AllowOverride None
|
|
||||||
Require all granted
|
|
||||||
</Directory>
|
|
||||||
|
|
||||||
</IfModule>
|
|
||||||
|
|
||||||
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
|
|
|
@ -1 +0,0 @@
|
||||||
LoadModule alias_module /usr/lib/apache2/modules/mod_alias.so
|
|
|
@ -1 +0,0 @@
|
||||||
LoadModule allowmethods_module /usr/lib/apache2/modules/mod_allowmethods.so
|
|
|
@ -1,2 +0,0 @@
|
||||||
# Depends: mime
|
|
||||||
LoadModule asis_module /usr/lib/apache2/modules/mod_asis.so
|
|
|
@ -1,2 +0,0 @@
|
||||||
# Depends: authn_core
|
|
||||||
LoadModule auth_basic_module /usr/lib/apache2/modules/mod_auth_basic.so
|
|
|
@ -1,2 +0,0 @@
|
||||||
# Depends: authn_core
|
|
||||||
LoadModule auth_digest_module /usr/lib/apache2/modules/mod_auth_digest.so
|
|
|
@ -1,2 +0,0 @@
|
||||||
# Depends: session authn_core
|
|
||||||
LoadModule auth_form_module /usr/lib/apache2/modules/mod_auth_form.so
|
|
|
@ -1 +0,0 @@
|
||||||
LoadModule authn_anon_module /usr/lib/apache2/modules/mod_authn_anon.so
|
|
|
@ -1 +0,0 @@
|
||||||
LoadModule authn_core_module /usr/lib/apache2/modules/mod_authn_core.so
|
|
|
@ -1,2 +0,0 @@
|
||||||
# Depends: dbd
|
|
||||||
LoadModule authn_dbd_module /usr/lib/apache2/modules/mod_authn_dbd.so
|
|
|
@ -1 +0,0 @@
|
||||||
LoadModule authn_dbm_module /usr/lib/apache2/modules/mod_authn_dbm.so
|
|
|
@ -1 +0,0 @@
|
||||||
LoadModule authn_file_module /usr/lib/apache2/modules/mod_authn_file.so
|
|
|
@ -1 +0,0 @@
|
||||||
LoadModule authn_socache_module /usr/lib/apache2/modules/mod_authn_socache.so
|
|
|
@ -1 +0,0 @@
|
||||||
LoadModule authnz_fcgi_module /usr/lib/apache2/modules/mod_authnz_fcgi.so
|
|
|
@ -1,2 +0,0 @@
|
||||||
# Depends: ldap
|
|
||||||
LoadModule authnz_ldap_module /usr/lib/apache2/modules/mod_authnz_ldap.so
|
|
|
@ -1 +0,0 @@
|
||||||
LoadModule authz_core_module /usr/lib/apache2/modules/mod_authz_core.so
|
|
|
@ -1,2 +0,0 @@
|
||||||
# Depends: dbd authz_core
|
|
||||||
LoadModule authz_dbd_module /usr/lib/apache2/modules/mod_authz_dbd.so
|
|
|
@ -1,2 +0,0 @@
|
||||||
# Depends: authz_core
|
|
||||||
LoadModule authz_dbm_module /usr/lib/apache2/modules/mod_authz_dbm.so
|
|
|
@ -1,2 +0,0 @@
|
||||||
# Depends: authz_core
|
|
||||||
LoadModule authz_groupfile_module /usr/lib/apache2/modules/mod_authz_groupfile.so
|
|
|
@ -1,2 +0,0 @@
|
||||||
# Depends: authz_core
|
|
||||||
LoadModule authz_host_module /usr/lib/apache2/modules/mod_authz_host.so
|
|
|
@ -1 +0,0 @@
|
||||||
LoadModule authz_owner_module /usr/lib/apache2/modules/mod_authz_owner.so
|
|
|
@ -1,2 +0,0 @@
|
||||||
# Depends: authz_core
|
|
||||||
LoadModule authz_user_module /usr/lib/apache2/modules/mod_authz_user.so
|
|
|
@ -1,96 +0,0 @@
|
||||||
<IfModule mod_autoindex.c>
|
|
||||||
# Directives controlling the display of server-generated directory listings.
|
|
||||||
|
|
||||||
#
|
|
||||||
# IndexOptions: Controls the appearance of server-generated directory
|
|
||||||
# listings.
|
|
||||||
# Remove/replace the "Charset=UTF-8" if you don't use UTF-8 for your filenames.
|
|
||||||
IndexOptions FancyIndexing VersionSort HTMLTable NameWidth=* DescriptionWidth=* Charset=UTF-8
|
|
||||||
|
|
||||||
#
|
|
||||||
# AddIcon* directives tell the server which icon to show for different
|
|
||||||
# files or filename extensions. These are only displayed for
|
|
||||||
# FancyIndexed directories.
|
|
||||||
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip x-bzip2
|
|
||||||
|
|
||||||
AddIconByType (TXT,/icons/text.gif) text/*
|
|
||||||
AddIconByType (IMG,/icons/image2.gif) image/*
|
|
||||||
AddIconByType (SND,/icons/sound2.gif) audio/*
|
|
||||||
AddIconByType (VID,/icons/movie.gif) video/*
|
|
||||||
|
|
||||||
AddIcon /icons/binary.gif .bin .exe
|
|
||||||
AddIcon /icons/binhex.gif .hqx
|
|
||||||
AddIcon /icons/tar.gif .tar
|
|
||||||
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
|
|
||||||
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
|
|
||||||
AddIcon /icons/a.gif .ps .ai .eps
|
|
||||||
AddIcon /icons/layout.gif .html .shtml .htm .pdf
|
|
||||||
AddIcon /icons/text.gif .txt
|
|
||||||
AddIcon /icons/c.gif .c
|
|
||||||
AddIcon /icons/p.gif .pl .py
|
|
||||||
AddIcon /icons/f.gif .for
|
|
||||||
AddIcon /icons/dvi.gif .dvi
|
|
||||||
AddIcon /icons/uuencoded.gif .uu
|
|
||||||
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
|
|
||||||
AddIcon /icons/tex.gif .tex
|
|
||||||
# It's a suffix rule, so simply matching "core" matches "score" as well !
|
|
||||||
AddIcon /icons/bomb.gif /core
|
|
||||||
AddIcon (SND,/icons/sound2.gif) .ogg
|
|
||||||
AddIcon (VID,/icons/movie.gif) .ogm
|
|
||||||
|
|
||||||
AddIcon /icons/back.gif ..
|
|
||||||
AddIcon /icons/hand.right.gif README
|
|
||||||
AddIcon /icons/folder.gif ^^DIRECTORY^^
|
|
||||||
AddIcon /icons/blank.gif ^^BLANKICON^^
|
|
||||||
|
|
||||||
# Default icons for OpenDocument format
|
|
||||||
AddIcon /icons/odf6odt-20x22.png .odt
|
|
||||||
AddIcon /icons/odf6ods-20x22.png .ods
|
|
||||||
AddIcon /icons/odf6odp-20x22.png .odp
|
|
||||||
AddIcon /icons/odf6odg-20x22.png .odg
|
|
||||||
AddIcon /icons/odf6odc-20x22.png .odc
|
|
||||||
AddIcon /icons/odf6odf-20x22.png .odf
|
|
||||||
AddIcon /icons/odf6odb-20x22.png .odb
|
|
||||||
AddIcon /icons/odf6odi-20x22.png .odi
|
|
||||||
AddIcon /icons/odf6odm-20x22.png .odm
|
|
||||||
|
|
||||||
AddIcon /icons/odf6ott-20x22.png .ott
|
|
||||||
AddIcon /icons/odf6ots-20x22.png .ots
|
|
||||||
AddIcon /icons/odf6otp-20x22.png .otp
|
|
||||||
AddIcon /icons/odf6otg-20x22.png .otg
|
|
||||||
AddIcon /icons/odf6otc-20x22.png .otc
|
|
||||||
AddIcon /icons/odf6otf-20x22.png .otf
|
|
||||||
AddIcon /icons/odf6oti-20x22.png .oti
|
|
||||||
AddIcon /icons/odf6oth-20x22.png .oth
|
|
||||||
|
|
||||||
#
|
|
||||||
# DefaultIcon is which icon to show for files which do not have an icon
|
|
||||||
# explicitly set.
|
|
||||||
DefaultIcon /icons/unknown.gif
|
|
||||||
|
|
||||||
#
|
|
||||||
# AddDescription allows you to place a short description after a file in
|
|
||||||
# server-generated indexes. These are only displayed for FancyIndexed
|
|
||||||
# directories.
|
|
||||||
# Format: AddDescription "description" filename
|
|
||||||
#AddDescription "GZIP compressed document" .gz
|
|
||||||
#AddDescription "tar archive" .tar
|
|
||||||
#AddDescription "GZIP compressed tar archive" .tgz
|
|
||||||
|
|
||||||
#
|
|
||||||
# ReadmeName is the name of the README file the server will look for by
|
|
||||||
# default, and append to directory listings.
|
|
||||||
#
|
|
||||||
# HeaderName is the name of a file which should be prepended to
|
|
||||||
# directory indexes
|
|
||||||
ReadmeName README.html
|
|
||||||
HeaderName HEADER.html
|
|
||||||
|
|
||||||
#
|
|
||||||
# IndexIgnore is a set of filenames which directory indexing should ignore
|
|
||||||
# and not include in the listing. Shell-style wildcarding is permitted.
|
|
||||||
IndexIgnore .??* *~ *# RCS CVS *,v *,t
|
|
||||||
|
|
||||||
</IfModule>
|
|
||||||
|
|
||||||
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
|
|
|
@ -1 +0,0 @@
|
||||||
LoadModule autoindex_module /usr/lib/apache2/modules/mod_autoindex.so
|
|
|
@ -1 +0,0 @@
|
||||||
LoadModule brotli_module /usr/lib/apache2/modules/mod_brotli.so
|
|
|
@ -1 +0,0 @@
|
||||||
LoadModule buffer_module /usr/lib/apache2/modules/mod_buffer.so
|
|
|
@ -1 +0,0 @@
|
||||||
LoadModule cache_module /usr/lib/apache2/modules/mod_cache.so
|
|
|
@ -1,27 +0,0 @@
|
||||||
<IfModule mod_cache_disk.c>
|
|
||||||
|
|
||||||
# cache cleaning is done by htcacheclean, which can be configured in
|
|
||||||
# /etc/default/apache2
|
|
||||||
#
|
|
||||||
# For further information, see the comments in that file,
|
|
||||||
# /usr/share/doc/apache2/README.Debian, and the htcacheclean(8)
|
|
||||||
# man page.
|
|
||||||
|
|
||||||
# This path must be the same as the one in /etc/default/apache2
|
|
||||||
CacheRoot /var/cache/apache2/mod_cache_disk
|
|
||||||
|
|
||||||
# This will also cache local documents. It usually makes more sense to
|
|
||||||
# put this into the configuration for just one virtual host.
|
|
||||||
#CacheEnable disk /
|
|
||||||
|
|
||||||
|
|
||||||
# The result of CacheDirLevels * CacheDirLength must not be higher than
|
|
||||||
# 20. Moreover, pay attention on file system limits. Some file systems
|
|
||||||
# do not support more than a certain number of inodes and
|
|
||||||
# subdirectories (e.g. 32000 for ext3)
|
|
||||||
CacheDirLevels 2
|
|
||||||
CacheDirLength 1
|
|
||||||
|
|
||||||
</IfModule>
|
|
||||||
|
|
||||||
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
|
|
|
@ -1,2 +0,0 @@
|
||||||
# Depends: cache
|
|
||||||
LoadModule cache_disk_module /usr/lib/apache2/modules/mod_cache_disk.so
|
|
|
@ -1,2 +0,0 @@
|
||||||
# Depends: cache
|
|
||||||
LoadModule cache_socache_module /usr/lib/apache2/modules/mod_cache_socache.so
|
|
|
@ -1 +0,0 @@
|
||||||
LoadModule cern_meta_module /usr/lib/apache2/modules/mod_cern_meta.so
|
|
|
@ -1 +0,0 @@
|
||||||
LoadModule cgi_module /usr/lib/apache2/modules/mod_cgi.so
|
|
|
@ -1,4 +0,0 @@
|
||||||
# Socket for cgid communication
|
|
||||||
ScriptSock ${APACHE_RUN_DIR}/cgisock
|
|
||||||
|
|
||||||
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
|
|
|
@ -1 +0,0 @@
|
||||||
LoadModule cgid_module /usr/lib/apache2/modules/mod_cgid.so
|
|
|
@ -1 +0,0 @@
|
||||||
LoadModule charset_lite_module /usr/lib/apache2/modules/mod_charset_lite.so
|
|
|
@ -1 +0,0 @@
|
||||||
LoadModule data_module /usr/lib/apache2/modules/mod_data.so
|
|
|
@ -1,3 +0,0 @@
|
||||||
<IfModule !mod_dav.c>
|
|
||||||
LoadModule dav_module /usr/lib/apache2/modules/mod_dav.so
|
|
||||||
</IfModule>
|
|
|
@ -1,3 +0,0 @@
|
||||||
DAVLockDB ${APACHE_LOCK_DIR}/DAVLock
|
|
||||||
|
|
||||||
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
|
|
|
@ -1,2 +0,0 @@
|
||||||
# Depends: dav
|
|
||||||
LoadModule dav_fs_module /usr/lib/apache2/modules/mod_dav_fs.so
|
|
|
@ -1 +0,0 @@
|
||||||
LoadModule dav_lock_module /usr/lib/apache2/modules/mod_dav_lock.so
|
|
|
@ -1 +0,0 @@
|
||||||
LoadModule dbd_module /usr/lib/apache2/modules/mod_dbd.so
|
|
|
@ -1,11 +0,0 @@
|
||||||
<IfModule mod_deflate.c>
|
|
||||||
<IfModule mod_filter.c>
|
|
||||||
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript
|
|
||||||
AddOutputFilterByType DEFLATE application/x-javascript application/javascript application/ecmascript
|
|
||||||
AddOutputFilterByType DEFLATE application/rss+xml
|
|
||||||
AddOutputFilterByType DEFLATE application/wasm
|
|
||||||
AddOutputFilterByType DEFLATE application/xml
|
|
||||||
</IfModule>
|
|
||||||
</IfModule>
|
|
||||||
|
|
||||||
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
|
|
|
@ -1,2 +0,0 @@
|
||||||
# Depends: filter
|
|
||||||
LoadModule deflate_module /usr/lib/apache2/modules/mod_deflate.so
|
|
|
@ -1 +0,0 @@
|
||||||
LoadModule dialup_module /usr/lib/apache2/modules/mod_dialup.so
|
|
|
@ -1,5 +0,0 @@
|
||||||
<IfModule mod_dir.c>
|
|
||||||
DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm
|
|
||||||
</IfModule>
|
|
||||||
|
|
||||||
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
|
|
|
@ -1 +0,0 @@
|
||||||
LoadModule dir_module /usr/lib/apache2/modules/mod_dir.so
|
|
|
@ -1 +0,0 @@
|
||||||
LoadModule dumpio_module /usr/lib/apache2/modules/mod_dumpio.so
|
|
|
@ -1 +0,0 @@
|
||||||
LoadModule echo_module /usr/lib/apache2/modules/mod_echo.so
|
|
|
@ -1 +0,0 @@
|
||||||
LoadModule env_module /usr/lib/apache2/modules/mod_env.so
|
|
|
@ -1 +0,0 @@
|
||||||
LoadModule expires_module /usr/lib/apache2/modules/mod_expires.so
|
|
|
@ -1 +0,0 @@
|
||||||
LoadModule ext_filter_module /usr/lib/apache2/modules/mod_ext_filter.so
|
|
|
@ -1,2 +0,0 @@
|
||||||
# Depends: cache
|
|
||||||
LoadModule file_cache_module /usr/lib/apache2/modules/mod_file_cache.so
|
|
|
@ -1 +0,0 @@
|
||||||
LoadModule filter_module /usr/lib/apache2/modules/mod_filter.so
|
|
|
@ -1 +0,0 @@
|
||||||
LoadModule headers_module /usr/lib/apache2/modules/mod_headers.so
|
|
|
@ -1,3 +0,0 @@
|
||||||
# This module depends on mod_watchdog to be loaded before. In Debian, this
|
|
||||||
# module is statically linked.
|
|
||||||
LoadModule heartbeat_module /usr/lib/apache2/modules/mod_heartbeat.so
|
|
|
@ -1,3 +0,0 @@
|
||||||
# This module depends on mod_watchdog to be loaded before. In Debian, this
|
|
||||||
# module is statically linked.
|
|
||||||
LoadModule heartmonitor_module /usr/lib/apache2/modules/mod_heartmonitor.so
|
|
|
@ -1,34 +0,0 @@
|
||||||
|
|
||||||
# mod_http2 doesn't work with mpm_prefork
|
|
||||||
<IfModule !mpm_prefork>
|
|
||||||
Protocols h2 h2c http/1.1
|
|
||||||
|
|
||||||
# # HTTP/2 push configuration
|
|
||||||
#
|
|
||||||
# H2Push on
|
|
||||||
#
|
|
||||||
# # Default Priority Rule
|
|
||||||
#
|
|
||||||
# H2PushPriority * After 16
|
|
||||||
#
|
|
||||||
# # More complex ruleset:
|
|
||||||
#
|
|
||||||
# H2PushPriority * after
|
|
||||||
# H2PushPriority text/css before
|
|
||||||
# H2PushPriority image/jpeg after 32
|
|
||||||
# H2PushPriority image/png after 32
|
|
||||||
# H2PushPriority application/javascript interleaved
|
|
||||||
#
|
|
||||||
# # Configure some stylesheet and script to be pushed by the webserver
|
|
||||||
#
|
|
||||||
# <FilesMatch "\.html$">
|
|
||||||
# Header add Link "</style.css>; rel=preload; as=style"
|
|
||||||
# Header add Link "</script.js>; rel=preload; as=script"
|
|
||||||
# </FilesMatch>
|
|
||||||
# Since mod_http2 doesn't support the mod_logio module (which provide the %O format),
|
|
||||||
# you may want to change your LogFormat directive as follow:
|
|
||||||
#
|
|
||||||
# LogFormat "%v:%p %h %l %u %t \"%r\" %>s %B \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
|
|
||||||
# LogFormat "%h %l %u %t \"%r\" %>s %B \"%{Referer}i\" \"%{User-Agent}i\"" combined
|
|
||||||
# LogFormat "%h %l %u %t \"%r\" %>s %B" common
|
|
||||||
</IfModule>
|
|
|
@ -1 +0,0 @@
|
||||||
LoadModule http2_module /usr/lib/apache2/modules/mod_http2.so
|
|
|
@ -1 +0,0 @@
|
||||||
LoadModule ident_module /usr/lib/apache2/modules/mod_ident.so
|
|
|
@ -1 +0,0 @@
|
||||||
LoadModule imagemap_module /usr/lib/apache2/modules/mod_imagemap.so
|
|
|
@ -1,2 +0,0 @@
|
||||||
# Depends: mime
|
|
||||||
LoadModule include_module /usr/lib/apache2/modules/mod_include.so
|
|
|
@ -1,15 +0,0 @@
|
||||||
<IfModule mod_info.c>
|
|
||||||
|
|
||||||
# Allow remote server configuration reports, with the URL of
|
|
||||||
# http://servername/server-info (requires that mod_info.c be loaded).
|
|
||||||
# Uncomment and change the "192.0.2.0/24" to allow access from other hosts.
|
|
||||||
#
|
|
||||||
<Location /server-info>
|
|
||||||
SetHandler server-info
|
|
||||||
Require local
|
|
||||||
#Require ip 192.0.2.0/24
|
|
||||||
</Location>
|
|
||||||
|
|
||||||
</IfModule>
|
|
||||||
|
|
||||||
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
|
|
|
@ -1 +0,0 @@
|
||||||
LoadModule info_module /usr/lib/apache2/modules/mod_info.so
|
|
|
@ -1,2 +0,0 @@
|
||||||
# Depends: proxy_balancer
|
|
||||||
LoadModule lbmethod_bybusyness_module /usr/lib/apache2/modules/mod_lbmethod_bybusyness.so
|
|
|
@ -1,2 +0,0 @@
|
||||||
# Depends: proxy_balancer
|
|
||||||
LoadModule lbmethod_byrequests_module /usr/lib/apache2/modules/mod_lbmethod_byrequests.so
|
|
|
@ -1,2 +0,0 @@
|
||||||
# Depends: proxy_balancer
|
|
||||||
LoadModule lbmethod_bytraffic_module /usr/lib/apache2/modules/mod_lbmethod_bytraffic.so
|
|
|
@ -1,2 +0,0 @@
|
||||||
# Depends: proxy_balancer
|
|
||||||
LoadModule lbmethod_heartbeat_module /usr/lib/apache2/modules/mod_lbmethod_heartbeat.so
|
|
|
@ -1,6 +0,0 @@
|
||||||
<Location /ldap-status>
|
|
||||||
SetHandler ldap-status
|
|
||||||
Require local
|
|
||||||
</Location>
|
|
||||||
|
|
||||||
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
|
|
|
@ -1 +0,0 @@
|
||||||
LoadModule ldap_module /usr/lib/apache2/modules/mod_ldap.so
|
|
|
@ -1 +0,0 @@
|
||||||
LoadModule log_debug_module /usr/lib/apache2/modules/mod_log_debug.so
|
|
|
@ -1 +0,0 @@
|
||||||
LoadModule log_forensic_module /usr/lib/apache2/modules/mod_log_forensic.so
|
|
|
@ -1 +0,0 @@
|
||||||
LoadModule lua_module /usr/lib/apache2/modules/mod_lua.so
|
|
|
@ -1 +0,0 @@
|
||||||
LoadModule macro_module /usr/lib/apache2/modules/mod_macro.so
|
|
|
@ -1 +0,0 @@
|
||||||
LoadModule md_module /usr/lib/apache2/modules/mod_md.so
|
|
|
@ -1,252 +0,0 @@
|
||||||
<IfModule mod_mime.c>
|
|
||||||
|
|
||||||
#
|
|
||||||
# TypesConfig points to the file containing the list of mappings from
|
|
||||||
# filename extension to MIME-type.
|
|
||||||
#
|
|
||||||
TypesConfig /etc/mime.types
|
|
||||||
|
|
||||||
#
|
|
||||||
# AddType allows you to add to or override the MIME configuration
|
|
||||||
# file mime.types for specific file types.
|
|
||||||
#
|
|
||||||
#AddType application/x-gzip .tgz
|
|
||||||
#
|
|
||||||
# AddEncoding allows you to have certain browsers uncompress
|
|
||||||
# information on the fly. Note: Not all browsers support this.
|
|
||||||
# Despite the name similarity, the following Add* directives have
|
|
||||||
# nothing to do with the FancyIndexing customization directives above.
|
|
||||||
#
|
|
||||||
#AddEncoding x-compress .Z
|
|
||||||
#AddEncoding x-gzip .gz .tgz
|
|
||||||
#AddEncoding x-bzip2 .bz2
|
|
||||||
#
|
|
||||||
# If the AddEncoding directives above are commented-out, then you
|
|
||||||
# probably should define those extensions to indicate media types:
|
|
||||||
#
|
|
||||||
AddType application/x-compress .Z
|
|
||||||
AddType application/x-gzip .gz .tgz
|
|
||||||
AddType application/x-bzip2 .bz2
|
|
||||||
|
|
||||||
#
|
|
||||||
# DefaultLanguage and AddLanguage allows you to specify the language of
|
|
||||||
# a document. You can then use content negotiation to give a browser a
|
|
||||||
# file in a language the user can understand.
|
|
||||||
#
|
|
||||||
# Specify a default language. This means that all data
|
|
||||||
# going out without a specific language tag (see below) will
|
|
||||||
# be marked with this one. You probably do NOT want to set
|
|
||||||
# this unless you are sure it is correct for all cases.
|
|
||||||
#
|
|
||||||
# * It is generally better to not mark a page as
|
|
||||||
# * being a certain language than marking it with the wrong
|
|
||||||
# * language!
|
|
||||||
#
|
|
||||||
# DefaultLanguage nl
|
|
||||||
#
|
|
||||||
# Note 1: The suffix does not have to be the same as the language
|
|
||||||
# keyword --- those with documents in Polish (whose net-standard
|
|
||||||
# language code is pl) may wish to use "AddLanguage pl .po" to
|
|
||||||
# avoid the ambiguity with the common suffix for perl scripts.
|
|
||||||
#
|
|
||||||
# Note 2: The example entries below illustrate that in some cases
|
|
||||||
# the two character 'Language' abbreviation is not identical to
|
|
||||||
# the two character 'Country' code for its country,
|
|
||||||
# E.g. 'Danmark/dk' versus 'Danish/da'.
|
|
||||||
#
|
|
||||||
# Note 3: In the case of 'ltz' we violate the RFC by using a three char
|
|
||||||
# specifier. There is 'work in progress' to fix this and get
|
|
||||||
# the reference data for rfc1766 cleaned up.
|
|
||||||
#
|
|
||||||
# Catalan (ca) - Croatian (hr) - Czech (cs) - Danish (da) - Dutch (nl)
|
|
||||||
# English (en) - Esperanto (eo) - Estonian (et) - French (fr) - German (de)
|
|
||||||
# Greek-Modern (el) - Hebrew (he) - Italian (it) - Japanese (ja)
|
|
||||||
# Korean (ko) - Luxembourgeois* (ltz) - Norwegian Nynorsk (nn)
|
|
||||||
# Norwegian (no) - Polish (pl) - Portugese (pt)
|
|
||||||
# Brazilian Portuguese (pt-BR) - Russian (ru) - Swedish (sv)
|
|
||||||
# Simplified Chinese (zh-CN) - Spanish (es) - Traditional Chinese (zh-TW)
|
|
||||||
#
|
|
||||||
AddLanguage am .amh
|
|
||||||
AddLanguage ar .ara
|
|
||||||
AddLanguage be .be
|
|
||||||
AddLanguage bg .bg
|
|
||||||
AddLanguage bn .bn
|
|
||||||
AddLanguage br .br
|
|
||||||
AddLanguage bs .bs
|
|
||||||
AddLanguage ca .ca
|
|
||||||
AddLanguage cs .cz .cs
|
|
||||||
AddLanguage cy .cy
|
|
||||||
AddLanguage da .da
|
|
||||||
AddLanguage da .dk
|
|
||||||
AddLanguage de .de
|
|
||||||
AddLanguage dz .dz
|
|
||||||
AddLanguage el .el
|
|
||||||
AddLanguage en .en
|
|
||||||
AddLanguage eo .eo
|
|
||||||
# es is ecmascript in /etc/mime.types
|
|
||||||
RemoveType es
|
|
||||||
AddLanguage es .es
|
|
||||||
AddLanguage et .et
|
|
||||||
AddLanguage eu .eu
|
|
||||||
AddLanguage fa .fa
|
|
||||||
AddLanguage fi .fi
|
|
||||||
AddLanguage fr .fr
|
|
||||||
AddLanguage ga .ga
|
|
||||||
AddLanguage gl .glg
|
|
||||||
AddLanguage gu .gu
|
|
||||||
AddLanguage he .he
|
|
||||||
AddLanguage hi .hi
|
|
||||||
AddLanguage hr .hr
|
|
||||||
AddLanguage hu .hu
|
|
||||||
AddLanguage hy .hy
|
|
||||||
AddLanguage id .id
|
|
||||||
AddLanguage is .is
|
|
||||||
AddLanguage it .it
|
|
||||||
AddLanguage ja .ja
|
|
||||||
AddLanguage ka .ka
|
|
||||||
AddLanguage kk .kk
|
|
||||||
AddLanguage km .km
|
|
||||||
AddLanguage kn .kn
|
|
||||||
AddLanguage ko .ko
|
|
||||||
AddLanguage ku .ku
|
|
||||||
AddLanguage lo .lo
|
|
||||||
AddLanguage lt .lt
|
|
||||||
AddLanguage ltz .ltz
|
|
||||||
AddLanguage lv .lv
|
|
||||||
AddLanguage mg .mg
|
|
||||||
AddLanguage mk .mk
|
|
||||||
AddLanguage ml .ml
|
|
||||||
AddLanguage mr .mr
|
|
||||||
AddLanguage ms .msa
|
|
||||||
AddLanguage nb .nob
|
|
||||||
AddLanguage ne .ne
|
|
||||||
AddLanguage nl .nl
|
|
||||||
AddLanguage nn .nn
|
|
||||||
AddLanguage no .no
|
|
||||||
AddLanguage pa .pa
|
|
||||||
AddLanguage pl .po
|
|
||||||
AddLanguage pt-BR .pt-br
|
|
||||||
AddLanguage pt .pt
|
|
||||||
AddLanguage ro .ro
|
|
||||||
AddLanguage ru .ru
|
|
||||||
AddLanguage sa .sa
|
|
||||||
AddLanguage se .se
|
|
||||||
AddLanguage si .si
|
|
||||||
AddLanguage sk .sk
|
|
||||||
AddLanguage sl .sl
|
|
||||||
AddLanguage sq .sq
|
|
||||||
AddLanguage sr .sr
|
|
||||||
AddLanguage sv .sv
|
|
||||||
AddLanguage ta .ta
|
|
||||||
AddLanguage te .te
|
|
||||||
AddLanguage th .th
|
|
||||||
AddLanguage tl .tl
|
|
||||||
RemoveType tr
|
|
||||||
# tr is troff in /etc/mime.types
|
|
||||||
AddLanguage tr .tr
|
|
||||||
AddLanguage uk .uk
|
|
||||||
AddLanguage ur .ur
|
|
||||||
AddLanguage vi .vi
|
|
||||||
AddLanguage wo .wo
|
|
||||||
AddLanguage xh .xh
|
|
||||||
AddLanguage zh-CN .zh-cn
|
|
||||||
AddLanguage zh-TW .zh-tw
|
|
||||||
|
|
||||||
#
|
|
||||||
# Commonly used filename extensions to character sets. You probably
|
|
||||||
# want to avoid clashes with the language extensions, unless you
|
|
||||||
# are good at carefully testing your setup after each change.
|
|
||||||
# See http://www.iana.org/assignments/character-sets for the
|
|
||||||
# official list of charset names and their respective RFCs.
|
|
||||||
#
|
|
||||||
AddCharset us-ascii .ascii .us-ascii
|
|
||||||
AddCharset ISO-8859-1 .iso8859-1 .latin1
|
|
||||||
AddCharset ISO-8859-2 .iso8859-2 .latin2 .cen
|
|
||||||
AddCharset ISO-8859-3 .iso8859-3 .latin3
|
|
||||||
AddCharset ISO-8859-4 .iso8859-4 .latin4
|
|
||||||
AddCharset ISO-8859-5 .iso8859-5 .cyr .iso-ru
|
|
||||||
AddCharset ISO-8859-6 .iso8859-6 .arb .arabic
|
|
||||||
AddCharset ISO-8859-7 .iso8859-7 .grk .greek
|
|
||||||
AddCharset ISO-8859-8 .iso8859-8 .heb .hebrew
|
|
||||||
AddCharset ISO-8859-9 .iso8859-9 .latin5 .trk
|
|
||||||
AddCharset ISO-8859-10 .iso8859-10 .latin6
|
|
||||||
AddCharset ISO-8859-13 .iso8859-13
|
|
||||||
AddCharset ISO-8859-14 .iso8859-14 .latin8
|
|
||||||
AddCharset ISO-8859-15 .iso8859-15 .latin9
|
|
||||||
AddCharset ISO-8859-16 .iso8859-16 .latin10
|
|
||||||
AddCharset ISO-2022-JP .iso2022-jp .jis
|
|
||||||
AddCharset ISO-2022-KR .iso2022-kr .kis
|
|
||||||
AddCharset ISO-2022-CN .iso2022-cn .cis
|
|
||||||
AddCharset Big5 .Big5 .big5 .b5
|
|
||||||
AddCharset cn-Big5 .cn-big5
|
|
||||||
# For russian, more than one charset is used (depends on client, mostly):
|
|
||||||
AddCharset WINDOWS-1251 .cp-1251 .win-1251
|
|
||||||
AddCharset CP866 .cp866
|
|
||||||
AddCharset KOI8 .koi8
|
|
||||||
AddCharset KOI8-E .koi8-e
|
|
||||||
AddCharset KOI8-r .koi8-r .koi8-ru
|
|
||||||
AddCharset KOI8-U .koi8-u
|
|
||||||
AddCharset KOI8-ru .koi8-uk .ua
|
|
||||||
AddCharset ISO-10646-UCS-2 .ucs2
|
|
||||||
AddCharset ISO-10646-UCS-4 .ucs4
|
|
||||||
AddCharset UTF-7 .utf7
|
|
||||||
AddCharset UTF-8 .utf8
|
|
||||||
AddCharset UTF-16 .utf16
|
|
||||||
AddCharset UTF-16BE .utf16be
|
|
||||||
AddCharset UTF-16LE .utf16le
|
|
||||||
AddCharset UTF-32 .utf32
|
|
||||||
AddCharset UTF-32BE .utf32be
|
|
||||||
AddCharset UTF-32LE .utf32le
|
|
||||||
AddCharset euc-cn .euc-cn
|
|
||||||
AddCharset euc-gb .euc-gb
|
|
||||||
AddCharset euc-jp .euc-jp
|
|
||||||
AddCharset euc-kr .euc-kr
|
|
||||||
#Not sure how euc-tw got in - IANA doesn't list it???
|
|
||||||
AddCharset EUC-TW .euc-tw
|
|
||||||
AddCharset gb2312 .gb2312 .gb
|
|
||||||
AddCharset iso-10646-ucs-2 .ucs-2 .iso-10646-ucs-2
|
|
||||||
AddCharset iso-10646-ucs-4 .ucs-4 .iso-10646-ucs-4
|
|
||||||
AddCharset shift_jis .shift_jis .sjis
|
|
||||||
AddCharset BRF .brf
|
|
||||||
|
|
||||||
#
|
|
||||||
# AddHandler allows you to map certain file extensions to "handlers":
|
|
||||||
# actions unrelated to filetype. These can be either built into the server
|
|
||||||
# or added with the Action directive (see below)
|
|
||||||
#
|
|
||||||
# To use CGI scripts outside of ScriptAliased directories:
|
|
||||||
# (You will also need to add "ExecCGI" to the "Options" directive.)
|
|
||||||
#
|
|
||||||
#AddHandler cgi-script .cgi
|
|
||||||
|
|
||||||
#
|
|
||||||
# For files that include their own HTTP headers:
|
|
||||||
#
|
|
||||||
#AddHandler send-as-is asis
|
|
||||||
|
|
||||||
#
|
|
||||||
# For server-parsed imagemap files:
|
|
||||||
#
|
|
||||||
#AddHandler imap-file map
|
|
||||||
|
|
||||||
#
|
|
||||||
# For type maps (negotiated resources):
|
|
||||||
# (This is enabled by default to allow the Apache "It Worked" page
|
|
||||||
# to be distributed in multiple languages.)
|
|
||||||
#
|
|
||||||
AddHandler type-map var
|
|
||||||
|
|
||||||
#
|
|
||||||
# Filters allow you to process content before it is sent to the client.
|
|
||||||
#
|
|
||||||
# To parse .shtml files for server-side includes (SSI):
|
|
||||||
# (You will also need to add "Includes" to the "Options" directive.)
|
|
||||||
#
|
|
||||||
AddType text/html .shtml
|
|
||||||
<IfModule mod_include.c>
|
|
||||||
AddOutputFilter INCLUDES .shtml
|
|
||||||
</IfModule>
|
|
||||||
|
|
||||||
</IfModule>
|
|
||||||
|
|
||||||
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
|
|
|
@ -1 +0,0 @@
|
||||||
LoadModule mime_module /usr/lib/apache2/modules/mod_mime.so
|
|
|
@ -1,5 +0,0 @@
|
||||||
<IfModule mod_mime_magic.c>
|
|
||||||
MIMEMagicFile /etc/apache2/magic
|
|
||||||
</IfModule>
|
|
||||||
|
|
||||||
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
|
|
|
@ -1 +0,0 @@
|
||||||
LoadModule mime_magic_module /usr/lib/apache2/modules/mod_mime_magic.so
|
|
|
@ -1,18 +0,0 @@
|
||||||
# event MPM
|
|
||||||
# StartServers: initial number of server processes to start
|
|
||||||
# MinSpareThreads: minimum number of worker threads which are kept spare
|
|
||||||
# MaxSpareThreads: maximum number of worker threads which are kept spare
|
|
||||||
# ThreadsPerChild: constant number of worker threads in each server process
|
|
||||||
# MaxRequestWorkers: maximum number of worker threads
|
|
||||||
# MaxConnectionsPerChild: maximum number of requests a server process serves
|
|
||||||
<IfModule mpm_event_module>
|
|
||||||
StartServers 2
|
|
||||||
MinSpareThreads 25
|
|
||||||
MaxSpareThreads 75
|
|
||||||
ThreadLimit 64
|
|
||||||
ThreadsPerChild 25
|
|
||||||
MaxRequestWorkers 150
|
|
||||||
MaxConnectionsPerChild 0
|
|
||||||
</IfModule>
|
|
||||||
|
|
||||||
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
|
|
|
@ -1,2 +0,0 @@
|
||||||
# Conflicts: mpm_worker mpm_prefork
|
|
||||||
LoadModule mpm_event_module /usr/lib/apache2/modules/mod_mpm_event.so
|
|
|
@ -1,16 +0,0 @@
|
||||||
# prefork MPM
|
|
||||||
# StartServers: number of server processes to start
|
|
||||||
# MinSpareServers: minimum number of server processes which are kept spare
|
|
||||||
# MaxSpareServers: maximum number of server processes which are kept spare
|
|
||||||
# MaxRequestWorkers: maximum number of server processes allowed to start
|
|
||||||
# MaxConnectionsPerChild: maximum number of requests a server process serves
|
|
||||||
|
|
||||||
<IfModule mpm_prefork_module>
|
|
||||||
StartServers 5
|
|
||||||
MinSpareServers 5
|
|
||||||
MaxSpareServers 10
|
|
||||||
MaxRequestWorkers 150
|
|
||||||
MaxConnectionsPerChild 0
|
|
||||||
</IfModule>
|
|
||||||
|
|
||||||
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
|
|
|
@ -1,2 +0,0 @@
|
||||||
# Conflicts: mpm_event mpm_worker
|
|
||||||
LoadModule mpm_prefork_module /usr/lib/apache2/modules/mod_mpm_prefork.so
|
|
|
@ -1,22 +0,0 @@
|
||||||
# worker MPM
|
|
||||||
# StartServers: initial number of server processes to start
|
|
||||||
# MinSpareThreads: minimum number of worker threads which are kept spare
|
|
||||||
# MaxSpareThreads: maximum number of worker threads which are kept spare
|
|
||||||
# ThreadLimit: ThreadsPerChild can be changed to this maximum value during a
|
|
||||||
# graceful restart. ThreadLimit can only be changed by stopping
|
|
||||||
# and starting Apache.
|
|
||||||
# ThreadsPerChild: constant number of worker threads in each server process
|
|
||||||
# MaxRequestWorkers: maximum number of threads
|
|
||||||
# MaxConnectionsPerChild: maximum number of requests a server process serves
|
|
||||||
|
|
||||||
<IfModule mpm_worker_module>
|
|
||||||
StartServers 2
|
|
||||||
MinSpareThreads 25
|
|
||||||
MaxSpareThreads 75
|
|
||||||
ThreadLimit 64
|
|
||||||
ThreadsPerChild 25
|
|
||||||
MaxRequestWorkers 150
|
|
||||||
MaxConnectionsPerChild 0
|
|
||||||
</IfModule>
|
|
||||||
|
|
||||||
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
|
|
|
@ -1,2 +0,0 @@
|
||||||
# Conflicts: mpm_event mpm_prefork
|
|
||||||
LoadModule mpm_worker_module /usr/lib/apache2/modules/mod_mpm_worker.so
|
|
|
@ -1,20 +0,0 @@
|
||||||
<IfModule mod_negotiation.c>
|
|
||||||
|
|
||||||
# LanguagePriority allows you to give precedence to some languages
|
|
||||||
# in case of a tie during content negotiation.
|
|
||||||
#
|
|
||||||
# Just list the languages in decreasing order of preference. We have
|
|
||||||
# more or less alphabetized them here. You probably want to change this.
|
|
||||||
#
|
|
||||||
LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv tr zh-CN zh-TW
|
|
||||||
|
|
||||||
#
|
|
||||||
# ForceLanguagePriority allows you to serve a result page rather than
|
|
||||||
# MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback)
|
|
||||||
# [in case no accepted languages matched the available variants]
|
|
||||||
#
|
|
||||||
ForceLanguagePriority Prefer Fallback
|
|
||||||
|
|
||||||
</IfModule>
|
|
||||||
|
|
||||||
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue