Is it necessary to have separate virtualhost blocks for the http and https versions of each site? or is there some way to avoid the duplication?
Peter Green's questions
I want to redirect (not proxy) requests for a list of hostnames to a different port using my nginx server how do I do this?
I'm currently trying to set up an apache server with mirrorbrain on debian jessie, mirrorbrain uses dbd to connect to the database. Unofrtunately I get the following in the error log
[Sun Oct 18 13:47:47.801830 2015] [dbd:error] [pid 7619:tid 140365218666240] (20014)Internal error: AH00633: failed to initialise
in /etc/apache2/mods-enabled/dbd.conf I have (I replaced my actual password with <censored> when posting here)
<IfModule mod_dbd.c>
DBDriver pgsql
DBDParams 'host=127.0.0.1 user=mirrorbrain password=<censored> dbname=mirrorbrain connect_timeout=15'
</IfModule>
any idea how to track down what the problem is? I can successfully connect to the db using the psql command line client with the same settings that dbd is configured to use. I have libaprutil1-dbd-pgsql installed.
Answers to questions in comments:
Yes I did use a2enmod dbd to enable dbd
The debian apache2.conf contains # Include module configuration: IncludeOptional mods-enabled/.load IncludeOptional mods-enabled/.conf
Which loads the modules and their configuration including the dbd.conf which I created (I know it is being loaded because the error changed when I created it).