aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/httpd.conf32
-rw-r--r--etc/package-search.conf11
-rw-r--r--etc/package-version-search.conf11
-rw-r--r--etc/search.conf8
-rw-r--r--etc/view.conf5
5 files changed, 40 insertions, 27 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
diff --git a/etc/package-search.conf b/etc/package-search.conf
new file mode 100644
index 0000000..f7eb07c
--- /dev/null
+++ b/etc/package-search.conf
@@ -0,0 +1,11 @@
+# file : etc/package-search.conf
+# copyright : Copyright (c) 2014-2015 Code Synthesis Ltd
+# license : MIT; see accompanying LICENSE file
+#
+# brep::module options
+#
+verb 1
+
+# brep::package_search options
+#
+results-on-page 2
diff --git a/etc/package-version-search.conf b/etc/package-version-search.conf
new file mode 100644
index 0000000..aa69170
--- /dev/null
+++ b/etc/package-version-search.conf
@@ -0,0 +1,11 @@
+# file : etc/package-version-search.conf
+# copyright : Copyright (c) 2014-2015 Code Synthesis Ltd
+# license : MIT; see accompanying LICENSE file
+#
+# brep::module options
+#
+verb 1
+
+# brep::package_version_search options
+#
+results-on-page 10
diff --git a/etc/search.conf b/etc/search.conf
deleted file mode 100644
index be86098..0000000
--- a/etc/search.conf
+++ /dev/null
@@ -1,8 +0,0 @@
-# brep::module options
-
-verb 1
-
-# brep::search options
-
-#ah 7
-results-on-page 20
diff --git a/etc/view.conf b/etc/view.conf
deleted file mode 100644
index 7c9b163..0000000
--- a/etc/view.conf
+++ /dev/null
@@ -1,5 +0,0 @@
-# brep::module options
-
-verb 2
-
-#oh 8