aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-12-22 14:58:04 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-01-04 16:22:08 +0200
commit1de1e45d2496e649f770530febcbe9c0dd37aba0 (patch)
tree05f0b23de31006e3b02482795ebccb6b54adb40d
parent563a7c529e35298569e529cc88035f94ab7e5895 (diff)
Bugfix: wrong apache configuration Location directive
-rw-r--r--INSTALL9
-rw-r--r--INSTALL-DEV12
-rw-r--r--etc/brep-apache2.conf9
3 files changed, 20 insertions, 10 deletions
diff --git a/INSTALL b/INSTALL
index b7de683..234e3b6 100644
--- a/INSTALL
+++ b/INSTALL
@@ -152,16 +152,17 @@ can also find this fragment in install/share/brep/etc/brep-apache2.conf):
# and the start of the repository. For example, root value /pkg/ means
# the repository URL is http://example.org/pkg/. Specify / to use the
# web server root (e.g., http://example.org/). If using a different
- # repository root, don't forget to also change Alias directives below.
+ # repository root, don't forget to also change Location and Alias
+ # directives below.
#
brep-root /pkg/
- <Location "/pkg/">
+ <Location "/pkg">
SetHandler brep
<IfModule dir_module>
- DirectoryIndex disabled
- DirectorySlash Off
+ DirectoryIndex disabled
+ DirectorySlash Off
</IfModule>
</Location>
diff --git a/INSTALL-DEV b/INSTALL-DEV
index 92d7d43..2d03bbd 100644
--- a/INSTALL-DEV
+++ b/INSTALL-DEV
@@ -66,13 +66,21 @@ replacing <BREP-OUT-ROOT> and <BREP-SRC-ROOT> with the actual absolute paths
# Load the brep module.
#
LoadModule brep_module <BREP-OUT-ROOT>/brep/mod_brep.so
- SetHandler brep
# Repository root. Use / for web server root. And don't forget to also
- # update the Alias directives below.
+ # update the Location and Alias directives below.
#
brep-root /pkg/
+ <Location "/pkg">
+ SetHandler brep
+
+ <IfModule dir_module>
+ DirectoryIndex disabled
+ DirectorySlash Off
+ </IfModule>
+ </Location>
+
# Brep module configuration.
#
brep-conf <BREP-SRC-ROOT>/etc/brep-module.conf
diff --git a/etc/brep-apache2.conf b/etc/brep-apache2.conf
index 79ebc37..7f999c3 100644
--- a/etc/brep-apache2.conf
+++ b/etc/brep-apache2.conf
@@ -10,16 +10,17 @@
# and the start of the repository. For example, root value /pkg/ means
# the repository URL is http://example.org/pkg/. Specify / to use the
# web server root (e.g., http://example.org/). If using a different
- # repository root, don't forget to also change Alias directives below.
+ # repository root, don't forget to also change Location and Alias
+ # directives below.
#
brep-root /pkg/
- <Location "/pkg/">
+ <Location "/pkg">
SetHandler brep
<IfModule dir_module>
- DirectoryIndex disabled
- DirectorySlash Off
+ DirectoryIndex disabled
+ DirectorySlash Off
</IfModule>
</Location>