From 82d31aa2671ac3ffc7b1dbf4c6c9b6c38f0d9f2e Mon Sep 17 00:00:00 2001 From: "Damien F. Katz" Date: Thu, 2 Oct 2008 16:06:10 +0000 Subject: HTTPd refactoring. Moved most code out of couch_httpd into associated modules (couch_httpd_view, couch_httpd_db, couch_httpd_misc_handlers). Also a fix to removed previous doc_by_seq index entries on compaction retry. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@701173 13f79535-47bb-0310-9956-ffa450edef68 --- etc/couchdb/default.ini.tpl.in | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'etc/couchdb') diff --git a/etc/couchdb/default.ini.tpl.in b/etc/couchdb/default.ini.tpl.in index d369ee84..1e5f8fe1 100644 --- a/etc/couchdb/default.ini.tpl.in +++ b/etc/couchdb/default.ini.tpl.in @@ -11,7 +11,6 @@ view_timeout = 5000 ; 5 seconds [httpd] port = 5984 bind_address = 127.0.0.1 -utils_dir = %localdatadir%/www [log] file = %localstatelogdir%/couch.log @@ -26,3 +25,16 @@ db_update_notifier={couch_db_update_notifier_sup, start_link, []} full_text_query={couch_ft_query, start_link, []} query_servers={couch_query_servers, start_link, []} httpd={couch_httpd, start_link, []} + + +[httpd_global_handlers] +/ = {couch_httpd_misc_handlers, handle_welcome_req, <<"Welcome">>} +_utils = {couch_httpd_misc_handlers, handle_utils_dir_req, "%localdatadir%/www"} +_all_dbs = {couch_httpd_misc_handlers, handle_all_dbs_req} +_config = {couch_httpd_misc_handlers, handle_config_req} +_replicate = {couch_httpd_misc_handlers, handle_replicate_req} +_uuids = {couch_httpd_misc_handlers, handle_uuids_req} + +[httpd_db_handlers] +_view = {couch_httpd_view, handle_view_req} +_temp_view = {couch_httpd_view, handle_temp_view_req} -- cgit v1.2.3