aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-12-20 16:02:37 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-12-20 16:02:37 +0200
commitf4cca008bd3d2f1263c594bc9b16905e3400a640 (patch)
treec4193ef281cf981130a2cb35ba28179fbf5f6b9e
parent6ff87331aa452f0971cacbc34a06e2c2b30a00dd (diff)
Improved version of apache config0.1.0
-rw-r--r--INSTALL10
-rw-r--r--etc/brep-apache2.conf10
2 files changed, 18 insertions, 2 deletions
diff --git a/INSTALL b/INSTALL
index 97669de..de84593 100644
--- a/INSTALL
+++ b/INSTALL
@@ -140,7 +140,6 @@ can also find this fragment in install/share/brep/etc/brep-apache2.conf):
# Load the brep module.
#
LoadModule brep_module /home/brep/install/libexec/brep/mod_brep.so
- SetHandler brep
# Repository root. This is the part of the URL between the host name
# and the start of the repository. For example, root value /pkg/ means
@@ -150,6 +149,15 @@ can also find this fragment in install/share/brep/etc/brep-apache2.conf):
#
brep-root /pkg/
+ <Location "/pkg/">
+ SetHandler brep
+
+ <IfModule dir_module>
+ DirectoryIndex disabled
+ DirectorySlash Off
+ </IfModule>
+ </Location>
+
# Brep module configuration. If you prefer, you can paste the contents
# of this file here. However, you will need to prefix every option with
# 'brep-'.
diff --git a/etc/brep-apache2.conf b/etc/brep-apache2.conf
index 189216c..79ebc37 100644
--- a/etc/brep-apache2.conf
+++ b/etc/brep-apache2.conf
@@ -5,7 +5,6 @@
# Load the brep module.
#
LoadModule brep_module /home/brep/install/libexec/brep/mod_brep.so
- SetHandler brep
# Repository root. This is the part of the URL between the host name
# and the start of the repository. For example, root value /pkg/ means
@@ -15,6 +14,15 @@
#
brep-root /pkg/
+ <Location "/pkg/">
+ SetHandler brep
+
+ <IfModule dir_module>
+ DirectoryIndex disabled
+ DirectorySlash Off
+ </IfModule>
+ </Location>
+
# Brep module configuration. If you prefer, you can paste the contents
# of this file here. However, you will need to prefix every option with
# 'brep-'.