diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-11-14 16:29:22 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-11-16 16:42:35 +0200 |
commit | 03905bcf1bcfd9e7932fcac4283c5817058a25ce (patch) | |
tree | b643d3bedf436bfcd8956b25133d5674b6b18e36 /etc/httpd.conf | |
parent | 96281a6c4f818311a6df90c0d8b8f537a61e1090 (diff) |
Invent root path web interface configuration option
Diffstat (limited to 'etc/httpd.conf')
-rw-r--r-- | etc/httpd.conf | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/etc/httpd.conf b/etc/httpd.conf index 1000b04..c8405ed 100644 --- a/etc/httpd.conf +++ b/etc/httpd.conf @@ -5,7 +5,6 @@ ServerAdmin "${AP_ADMIN_EMAIL}" User apache Group apache -DocumentRoot "${AP_WWW_DIR}" CoreDumpDirectory "${AP_WORKSPACE_DIR}" PidFile "${AP_WORKSPACE_DIR}/httpd.pid" @@ -39,43 +38,49 @@ LoadModule deflate_module /usr/lib64/httpd/modules/mod_deflate.so LoadModule authz_host_module /usr/lib64/httpd/modules/mod_authz_host.so 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 package_search_srv ${AP_MODULE_DIR}/libbrep-apache.so <IfModule package_search_srv> + package-search-root ${AP_ROOT}/ package-search-db-host ${AP_DB_HOST} package-search-db-port ${AP_DB_PORT} - package-search-conf "${AP_CONFIG_DIR}/package-search.conf" + package-search-conf ${AP_CONFIG_DIR}/package-search.conf </IfModule> LoadModule package_details_srv ${AP_MODULE_DIR}/libbrep-apache.so <IfModule package_details_srv> + package-details-root ${AP_ROOT}/ package-details-db-host ${AP_DB_HOST} package-details-db-port ${AP_DB_PORT} - package-details-conf "${AP_CONFIG_DIR}/package-details.conf" + package-details-conf ${AP_CONFIG_DIR}/package-details.conf </IfModule> LoadModule package_version_details_srv ${AP_MODULE_DIR}/libbrep-apache.so <IfModule package_version_details_srv> + package-version-details-root ${AP_ROOT}/ package-version-details-db-host ${AP_DB_HOST} package-version-details-db-port ${AP_DB_PORT} - package-version-details-conf "${AP_CONFIG_DIR}/package-version-details.conf" + package-version-details-conf ${AP_CONFIG_DIR}/package-version-details.conf </IfModule> -<LocationMatch ^/$> +<LocationMatch ^${AP_ROOT}/?$> SetHandler package-search </LocationMatch> -<LocationMatch ^/go/[^/]+$> +<LocationMatch ^${AP_ROOT}/go/[^/]+$> SetHandler package-details </LocationMatch> -<LocationMatch ^/go/[^/]+/[^/]+$> +<LocationMatch ^${AP_ROOT}/go/[^/]+/[^/]+$> SetHandler package-version-details </LocationMatch> +AliasMatch ^${AP_ROOT}/(.+) ${AP_WWW_DIR}/$1 + ExtendedStatus On <Location /server-status> |