aboutsummaryrefslogtreecommitdiff
path: root/etc/httpd.conf
diff options
context:
space:
mode:
Diffstat (limited to 'etc/httpd.conf')
-rw-r--r--etc/httpd.conf24
1 files changed, 18 insertions, 6 deletions
diff --git a/etc/httpd.conf b/etc/httpd.conf
index 2570a5b..96a8b74 100644
--- a/etc/httpd.conf
+++ b/etc/httpd.conf
@@ -40,6 +40,8 @@ LoadModule expires_module /usr/lib64/httpd/modules/mod_expires.so
LoadModule dir_module /usr/lib64/httpd/modules/mod_dir.so
LoadModule alias_module /usr/lib64/httpd/modules/mod_alias.so
+LoadModule repository_root_srv ${AP_MODULE_DIR}/libbrep-apache.so
+
LoadModule package_search_srv ${AP_MODULE_DIR}/libbrep-apache.so
<IfModule package_search_srv>
@@ -77,22 +79,32 @@ LoadModule repository_details_srv ${AP_MODULE_DIR}/libbrep-apache.so
</IfModule>
<LocationMatch ^${AP_ROOT}/?$>
- SetHandler package-search
+ SetHandler repository-root
</LocationMatch>
-<LocationMatch ^${AP_ROOT}/go/[^/]+$>
+<LocationMatch ^${AP_ROOT}/[^/]+$>
SetHandler package-details
</LocationMatch>
-<LocationMatch ^${AP_ROOT}/go/[^/]+/[^/]+$>
+<LocationMatch ^${AP_ROOT}/[^/]+/[^/]+$>
SetHandler package-version-details
</LocationMatch>
-<LocationMatch ^${AP_ROOT}/about$>
- SetHandler repository-details
+# Disable package-version-details and package-details handlers on static files
+# and repository content locations.
+# Location examples: /@, /@/common.css, /1, /1/math/stable.
+#
+<LocationMatch ^${AP_ROOT}/(@|\d+)(/.*)?$>
+ SetHandler None
</LocationMatch>
-AliasMatch ^${AP_ROOT}/(.+) ${AP_WWW_DIR}/$1
+# Static files locations.
+#
+AliasMatch ^${AP_ROOT}/@/(.+) ${AP_WWW_DIR}/$1
+
+# Repository files locations.
+#
+AliasMatch ^${AP_ROOT}/(\d+)/(.+) ${AP_REPOSITORY_DIR}/$1/$2
ExtendedStatus On