aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/httpd.conf13
-rw-r--r--etc/package-version-details.conf7
2 files changed, 18 insertions, 2 deletions
diff --git a/etc/httpd.conf b/etc/httpd.conf
index ef8cb50..bf1d9e2 100644
--- a/etc/httpd.conf
+++ b/etc/httpd.conf
@@ -56,6 +56,14 @@ LoadModule package_version_search_srv ${AP_MODULE_DIR}/libbrep-apache.so
package-version-search-conf "${AP_CONFIG_DIR}/package-version-search.conf"
</IfModule>
+LoadModule package_version_details_srv ${AP_MODULE_DIR}/libbrep-apache.so
+
+<IfModule package_version_details_srv>
+ 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"
+</IfModule>
+
<LocationMatch ^/$>
SetHandler package-search
</LocationMatch>
@@ -64,8 +72,9 @@ LoadModule package_version_search_srv ${AP_MODULE_DIR}/libbrep-apache.so
SetHandler package-version-search
</LocationMatch>
-# Location for package version details url
-#<LocationMatch ^/go/[^/]+/[^/]+$>
+<LocationMatch ^/go/[^/]+/[^/]+$>
+ SetHandler package-version-details
+</LocationMatch>
ExtendedStatus On
diff --git a/etc/package-version-details.conf b/etc/package-version-details.conf
new file mode 100644
index 0000000..61a6fb9
--- /dev/null
+++ b/etc/package-version-details.conf
@@ -0,0 +1,7 @@
+# file : etc/package-version-details.conf
+# copyright : Copyright (c) 2014-2015 Code Synthesis Ltd
+# license : MIT; see accompanying LICENSE file
+#
+# brep::module options
+#
+verb 1