From 2700ed6a3e1092a064f28b07f8e2c4e5b9b830e7 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 16 Nov 2015 20:02:06 +0200 Subject: Implement new URL path schema for the web interface --- etc/httpd.conf | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) (limited to 'etc/httpd.conf') 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 @@ -77,22 +79,32 @@ LoadModule repository_details_srv ${AP_MODULE_DIR}/libbrep-apache.so - SetHandler package-search + SetHandler repository-root - + SetHandler package-details - + SetHandler package-version-details - - 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. +# + + SetHandler None -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 -- cgit v1.1