diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-08-14 13:03:08 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-08-23 13:53:50 +0200 |
commit | bcd246076540a8353fa55fc0a5e19343c1a2dbc9 (patch) | |
tree | 9fe2c24ca33b3d670267a5cbc8c8c756589f359b /etc/httpd.conf | |
parent | 24903813d11813f8ff9ac906d23b21e6c33b981d (diff) |
Implement package search service mockup
Diffstat (limited to 'etc/httpd.conf')
-rw-r--r-- | etc/httpd.conf | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/etc/httpd.conf b/etc/httpd.conf index 71ac903..ef8cb50 100644 --- a/etc/httpd.conf +++ b/etc/httpd.conf @@ -40,30 +40,33 @@ 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 search_srv ${AP_MODULE_DIR}/libbrep-apache.so +LoadModule package_search_srv ${AP_MODULE_DIR}/libbrep-apache.so -<IfModule search_srv> - search-db-host ${AP_DB_HOST} - search-db-port ${AP_DB_PORT} - search-conf "${AP_CONFIG_DIR}/search.conf" +<IfModule package_search_srv> + package-search-db-host ${AP_DB_HOST} + package-search-db-port ${AP_DB_PORT} + package-search-conf "${AP_CONFIG_DIR}/package-search.conf" </IfModule> -LoadModule view_srv ${AP_MODULE_DIR}/libbrep-apache.so +LoadModule package_version_search_srv ${AP_MODULE_DIR}/libbrep-apache.so -<IfModule view_srv> - view-db-host ${AP_DB_HOST} - view-db-port ${AP_DB_PORT} - view-conf "${AP_CONFIG_DIR}/view.conf" +<IfModule package_version_search_srv> + package-version-search-db-host ${AP_DB_HOST} + package-version-search-db-port ${AP_DB_PORT} + package-version-search-conf "${AP_CONFIG_DIR}/package-version-search.conf" </IfModule> -<LocationMatch ^/search$> - SetHandler search +<LocationMatch ^/$> + SetHandler package-search </LocationMatch> -<LocationMatch ^/view$> - SetHandler view +<LocationMatch ^/go/[^/]+$> + SetHandler package-version-search </LocationMatch> +# Location for package version details url +#<LocationMatch ^/go/[^/]+/[^/]+$> + ExtendedStatus On <Location /server-status> @@ -81,3 +84,4 @@ ExtendedStatus On DirectoryIndex index.html TypesConfig /etc/mime.types +AddOutputFilterByType DEFLATE application/xhtml+xml |