Archive for June, 2005
HtDig multiple sites and debian
This is largely a note to self so I don’t forget how to do this in the future. Given that we want to use debian packages where ever possible, it is important to use one install with multiple configuration files. The problem is that htdig has really crappy documentation when it comes to this.
You’d think you could just tell it to use a directory in the conf file and htdig would be happy to accept that. Unfortunately, this is not the case.
template_map:Long long /PATH/htdig/templates/long.html \ Short short /PATH/htdig/templates/short.html $template_name: long
here, it makes sense to make PATH a variable so that it’s easy to configure. What this part of the configuration doesn’t do however, is setup all the other templates. Which is easy to do, but hard to find out that you need to do it
search_results_header: /PATH/htdig/templates/header.html search_results_footer: /PATH/htdig/templates/footer.html search_results_wrapper: /PATH/htdig/templates/wrapper.html nothing_found_file: /PATH/htdig/templates/nomatch.html syntax_error_file: /PATH/htdig/templates/synerror.html

