diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-12-22 14:58:04 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-01-04 16:22:08 +0200 |
commit | 1de1e45d2496e649f770530febcbe9c0dd37aba0 (patch) | |
tree | 05f0b23de31006e3b02482795ebccb6b54adb40d | |
parent | 563a7c529e35298569e529cc88035f94ab7e5895 (diff) |
Bugfix: wrong apache configuration Location directive
-rw-r--r-- | INSTALL | 9 | ||||
-rw-r--r-- | INSTALL-DEV | 12 | ||||
-rw-r--r-- | etc/brep-apache2.conf | 9 |
3 files changed, 20 insertions, 10 deletions
@@ -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> |