aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-09-15 17:48:57 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-09-24 11:23:34 +0200
commitb192a3fcc7875210b3e1f6bd2292022a78c9f0e1 (patch)
treefb56f7c60405a91483d31ba934b5752ec854dd19 /etc
parentd09f17fbd7ffd5ea92feeb8aded6c66b1bfa2333 (diff)
Partial package version detals page implementation
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