Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37515375
en ru br
ALT Linux repositórios
S:2.4.57-alt2
D:2.2.9-alt11
5.0: 2.2.24-alt2.M50.1
4.1: 2.2.8-alt1
4.0: 2.2.6-alt4
+updates:2.2.6-alt2
3.0: 2.0.55-alt1
+backports:2.0.59-alt0.M30.1

Outros repositórios
Upstream:2.2.8

Group :: Sistema/Servidores
RPM: apache2

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: apache2-2.2.6-alt-configs-0.1.patch
Download


 .../extra-available/DirectoryIndex_default.conf.in |    7 +++
 .../Directory_cgibin_default.conf.in               |   15 +++++
 .../extra-available/Directory_html_default.conf.in |   36 +++++++++++++
 .../extra-available/Directory_root_default.conf.in |   11 ++++
 docs/conf/extra-available/dir_default.conf.in      |    7 ---
 docs/conf/sites-available/default.conf.in          |   55 ++++---------------
 docs/conf/sites-available/ports_all.conf.in        |    4 ++
 7 files changed, 85 insertions(+), 50 deletions(-)
diff --git a/docs/conf/extra-available/DirectoryIndex_default.conf.in b/docs/conf/extra-available/DirectoryIndex_default.conf.in
new file mode 100644
index 0000000..a5c7c14
--- /dev/null
+++ b/docs/conf/extra-available/DirectoryIndex_default.conf.in
@@ -0,0 +1,7 @@
+<IfModule dir_module>
+	#
+	# DirectoryIndex: sets the file that Apache will serve if a directory
+	# is requested.
+	#
+	DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.shtml
+</IfModule>
diff --git a/docs/conf/extra-available/Directory_cgibin_default.conf.in b/docs/conf/extra-available/Directory_cgibin_default.conf.in
new file mode 100644
index 0000000..06f2d30
--- /dev/null
+++ b/docs/conf/extra-available/Directory_cgibin_default.conf.in
@@ -0,0 +1,15 @@
+#
+# Summary: Default config for CGI directory
+# Provides: Directory
+# Provides: Directory-cgi
+#
+
+#
+# "@exp_cgidir@" should be changed to whatever your ScriptAliased
+# CGI directory exists, if you have that configured.
+#
+Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
+<IfModule authz_host_module>
+	Order allow,deny
+	Allow from all
+</IfModule>
diff --git a/docs/conf/extra-available/Directory_html_default.conf.in b/docs/conf/extra-available/Directory_html_default.conf.in
new file mode 100644
index 0000000..f722a2d
--- /dev/null
+++ b/docs/conf/extra-available/Directory_html_default.conf.in
@@ -0,0 +1,36 @@
+#
+# Summary: Default config for html documents
+# Provides: Directory
+# Provides: Directory-html
+#
+
+#
+# Possible values for the Options directive are "None", "All",
+# or any combination of:
+#   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
+#
+# Note that "MultiViews" must be named *explicitly* --- "Options All"
+# doesn't give it to you.
+#
+# The Options directive is both complicated and important.  Please see
+# http://httpd.apache.org/docs/2.2/mod/core.html#options
+# for more information.
+#
+Options Indexes Includes FollowSymLinks MultiViews
+
+#
+# AllowOverride controls what directives may be placed in .htaccess files.
+# It can be "All", "None", or any combination of the keywords:
+#   Options FileInfo AuthConfig Limit
+#
+AllowOverride None
+
+DirectoryIndex index
+
+<IfModule authz_host_module>
+	#
+	# Controls who can get stuff from this server.
+	#
+	Order allow,deny
+	Allow from all
+</IfModule>
diff --git a/docs/conf/extra-available/Directory_root_default.conf.in b/docs/conf/extra-available/Directory_root_default.conf.in
new file mode 100644
index 0000000..959cab7
--- /dev/null
+++ b/docs/conf/extra-available/Directory_root_default.conf.in
@@ -0,0 +1,11 @@
+#
+# Summary: Default config for all dirs
+# Provides: Directory
+# Provides: Directory-root
+#
+Options FollowSymLinks
+AllowOverride None
+<IfModule authz_host_module>
+	Order deny,allow
+	Deny from all
+</IfModule>
diff --git a/docs/conf/extra-available/dir_default.conf.in b/docs/conf/extra-available/dir_default.conf.in
deleted file mode 100644
index a5c7c14..0000000
--- a/docs/conf/extra-available/dir_default.conf.in
+++ /dev/null
@@ -1,7 +0,0 @@
-<IfModule dir_module>
-	#
-	# DirectoryIndex: sets the file that Apache will serve if a directory
-	# is requested.
-	#
-	DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.shtml
-</IfModule>
diff --git a/docs/conf/sites-available/default.conf.in b/docs/conf/sites-available/default.conf.in
index 13a6080..b8df019 100644
--- a/docs/conf/sites-available/default.conf.in
+++ b/docs/conf/sites-available/default.conf.in
@@ -1,3 +1,6 @@
+#
+# Summary: Main server configuration
+#
 # 'Main' server configuration
 #
 # The directives in this section set up the values used by the 'main'
@@ -10,7 +13,6 @@
 # virtual host being defined.
 #
 
-NameVirtualHost *
 <VirtualHost *>
 	#
 	# ServerAdmin: Your address, where problems with the server should be
@@ -44,12 +46,9 @@ NameVirtualHost *
 	# features.
 	#
 	<Directory />
-		Options FollowSymLinks
-		AllowOverride None
-		<IfModule authz_host_module>
-			Order deny,allow
-			Deny from all
-		</IfModule>
+		# Summary: Configure for all dirs by default
+		# Requires: Directory-root
+		Include @rel_sysconfdir@/extra-available/Directory_root_default.conf
 	</Directory>
 
 	#
@@ -63,37 +62,9 @@ NameVirtualHost *
 	# This should be changed to whatever you set DocumentRoot to.
 	#
 	<Directory "@exp_htdocsdir@">
-		#
-		# Possible values for the Options directive are "None", "All",
-		# or any combination of:
-		#   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
-		#
-		# Note that "MultiViews" must be named *explicitly* --- "Options All"
-		# doesn't give it to you.
-		#
-		# The Options directive is both complicated and important.  Please see
-		# http://httpd.apache.org/docs/2.2/mod/core.html#options
-		# for more information.
-		#
-		Options Indexes Includes FollowSymLinks MultiViews
-
-		#
-		# AllowOverride controls what directives may be placed in .htaccess files.
-		# It can be "All", "None", or any combination of the keywords:
-		#   Options FileInfo AuthConfig Limit
-		#
-		AllowOverride None
-
-		DirectoryIndex index
-
-		<IfModule authz_host_module>
-			#
-			# Controls who can get stuff from this server.
-			#
-			Order allow,deny
-			Allow from all
-		</IfModule>
-
+		# Summary: Configure for html documents in DocumentRoot
+		# Requires: Directory-html
+		Include @rel_sysconfdir@/extra-available/Directory_html_default.conf
 	</Directory>
 
 	#
@@ -165,10 +136,8 @@ NameVirtualHost *
 	# CGI directory exists, if you have that configured.
 	#
 	<Directory "@exp_cgidir@">
-		Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
-		<IfModule authz_host_module>
-			Order allow,deny
-			Allow from all
-		</IfModule>
+		# Summary: Configure for default CGI directory
+		# Requires: Directory-cgi
+		Include @rel_sysconfdir@/extra-available/Directory_cgibin_default.conf
 	</Directory>
 </VirtualHost>
diff --git a/docs/conf/sites-available/ports_all.conf.in b/docs/conf/sites-available/ports_all.conf.in
new file mode 100644
index 0000000..57c34f3
--- /dev/null
+++ b/docs/conf/sites-available/ports_all.conf.in
@@ -0,0 +1,4 @@
+#
+# Use name-based virtual hosting.
+#
+NameVirtualHost *
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009