Return-Path: X-Original-To: apmail-bloodhound-user-archive@www.apache.org Delivered-To: apmail-bloodhound-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BA0C7102D0 for ; Tue, 17 Sep 2013 08:26:16 +0000 (UTC) Received: (qmail 92117 invoked by uid 500); 17 Sep 2013 08:26:16 -0000 Delivered-To: apmail-bloodhound-user-archive@bloodhound.apache.org Received: (qmail 92106 invoked by uid 500); 17 Sep 2013 08:26:15 -0000 Mailing-List: contact user-help@bloodhound.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@bloodhound.apache.org Delivered-To: mailing list user@bloodhound.apache.org Received: (qmail 92094 invoked by uid 99); 17 Sep 2013 08:26:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Sep 2013 08:26:12 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of j@jdunk.com designates 208.97.132.5 as permitted sender) Received: from [208.97.132.5] (HELO homiemail-a20.g.dreamhost.com) (208.97.132.5) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Sep 2013 08:26:06 +0000 Received: from homiemail-a20.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a20.g.dreamhost.com (Postfix) with ESMTP id 59F597EC072 for ; Tue, 17 Sep 2013 01:25:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jdunk.com; h=mime-version :date:message-id:subject:from:to:content-type; s=jdunk.com; bh=y xaIjsp1oVQ93qidFs42PDf8n4U=; b=hv9qKj4CwfgopcHtbxFxteuy3mxzTwKsZ tyINqSfrUyYFtOdhmacV/VoGs1RcBoPXuAIGFXnPfBWM+vuPlt8Lq1JZfXDdbH7S HEeCLDhJ/HG2yu8SrfnhbnND3gD9FW1j3IgdK3ebYaqA1SeNMW5jql6CMAy2lK+B EQ5MXpaBWA= Received: from mail-wg0-f46.google.com (mail-wg0-f46.google.com [74.125.82.46]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: j@jdunk.com) by homiemail-a20.g.dreamhost.com (Postfix) with ESMTPSA id DCB487EC069 for ; Tue, 17 Sep 2013 01:25:43 -0700 (PDT) Received: by mail-wg0-f46.google.com with SMTP id k14so4633072wgh.13 for ; Tue, 17 Sep 2013 01:25:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=QZEeO2PnwoqXvk34bu4/IOn9MsPBuxFuMIJB8gLT/rs=; b=VU4xjDA0cTkFNeH3nZdEpThexy7LbnuxW1eL6fVw65Fay/lskjJ+kvno5Zf8z6Dilb zVDR4f4pqCQ33nPo/qSr6r8jGDXbUTpH1NcU9vyb8pNXmVqJJub+SUDgL6eKjUCeRwri HULQwI6OvGkJEfAQcNs9Y/WMPpZtkh9QYcOdi/fiKXtmlPk6yIpNjiIRxI0Rbyn50n8r VUdj7mBuz35L9iwdklPvvYilLoJRwRsmR9NqkwXoO4ESysUSXEo9Smqo0wpkufIZ6+nb KbxWM9iu7InU4iusKOiXX0zhvs77Mba9EfTnBZSF7dUbnSpXt9KB+ggxME+HknPzkt3M 6bzg== X-Gm-Message-State: ALoCoQkSVaww6p3Sa8pTi4Tx+tEXQm3OELN3Amfb86YRpFf30ME6Sg9WL8pr6q77MuHO94n5nXqc MIME-Version: 1.0 X-Received: by 10.194.201.202 with SMTP id kc10mr26002493wjc.1.1379406341848; Tue, 17 Sep 2013 01:25:41 -0700 (PDT) Received: by 10.216.193.72 with HTTP; Tue, 17 Sep 2013 01:25:41 -0700 (PDT) Date: Tue, 17 Sep 2013 01:25:41 -0700 Message-ID: Subject: Running Bloodhound via apache: 404 From: Jared Duncan To: user@bloodhound.apache.org Content-Type: multipart/alternative; boundary=047d7b873d1a01d94c04e690118f X-Virus-Checked: Checked by ClamAV on apache.org --047d7b873d1a01d94c04e690118f Content-Type: text/plain; charset=UTF-8 Hi list. I was successfully able to install and run bloodhound via tracd just fine, but I'm getting a strange 404 situation when I try to access it via apache instead. I'm using the same VirtualHost block that was suggested by the installation doc only with added directives for logging, and a ServerName and port 80 instead of 8000. https://issues.apache.org/bloodhound/wiki/BloodhoundInstall#WebServer My VirtualHost: ServerName bh.mydomain.com LogLevel warn ErrorLog /var/log/apache2/bh.mydomain.com-error.log CustomLog /var/log/apache2/bh.mydomain.com-access.log combined WSGIDaemonProcess bh_tracker user=bloodhound python-path=/usr/local/bloodhound/installer/bloodhound/lib/python2.7/site-packages WSGIScriptAlias /bloodhound /usr/local/bloodhound/installer/bloodhound/site/cgi-bin/trac.wsgi WSGIProcessGroup bh_tracker WSGIApplicationGroup %{GLOBAL} Order deny,allow Allow from all AuthType Digest AuthName "Bloodhound" AuthDigestDomain /bloodhound AuthUserFile /usr/local/bloodhound/installer/bloodhound/environments/main/bloodhound.htdigest Require valid-user === I ran trac-admin deploy and restarted apache of course. What happens, though, is any attempt to access that VirtualHost at any URI for that subdomain it's configured for yields a 404, and the error log says this: File does not exist: /etc/apache2/htdocs I know that it's matching the VirtualHost block because the above error gets written to the very file I uniquely specified in the ErrorLog directive within that block. (The unique access log gets hit also.) So... anyone have an idea why it would be looking for an "htdocs" directory within /etc/apache2/ instead of /usr/local/bloodhound/installer/bloodhound/site/ ? In case it's of any help, mod_wsgi emits the following "info" messages when apache is started: [info] mod_wsgi (pid=15156): Attach interpreter ''. [info] mod_wsgi (pid=15156): Adding '/usr/local/bloodhound/installer/bloodhound/lib/python2.7/site-packages' to path. === Another thing: the Bloodhound installation doc says: The user referred to in the WSGIDaemonProcess should be the user that you > wish bloodhound to be run as and so that user must have the appropriate set > of permissions to access the Bloodhound installation. Running with any > special system level privileges should not be required and is not > recommended. > ...but it says nothing whatsoever about which permissions are needed on which files/directories, so we are left to completely guess, and doing something like sudo chown -R bloodhound.www-data /usr/local/bloodhound; sudo chmod -R ug+rwx /usr/local/bloodhound ...is ugly, inconvenient, and overly-permissive at best, and breaks things at worst. Is there a better way? --047d7b873d1a01d94c04e690118f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi list. =C2=A0I was successfully able to install and run = bloodhound via tracd just fine, but I'm getting a strange 404 situation= when I try to access it via apache instead.

I'm usi= ng the same VirtualHost block that was suggested by the installation doc on= ly with added directives for logging, and a ServerName and port 80 instead = of 8000.


My VirtualHost:

<VirtualH= ost *:80>
=C2=A0 = =C2=A0 ServerName bh.mydomain.com

=C2=A0 =C2=A0 LogLevel warn
=C2=A0 =C2=A0 ErrorLog /var/log/apache2/= bh.mydomain.com-error.log
=C2=A0 =C2=A0 CustomLog /var/log= /apache2/bh.mydomain.com-access.log combined

=C2=A0 =C2=A0 WSGIDaemonProcess bh_tracker user=3Dbloodhound pyth= on-path=3D/usr/local/bloodhound/installer/bloodhound/lib/python2.7/site-pac= kages
=C2=A0 =C2=A0 WSGIScriptAlias /b= loodhound /usr/local/bloodhound/installer/bloodhound/site/cgi-bin/trac.wsgi=
=C2=A0 =C2=A0 <D= irectory /usr/local/bloodhound/installer/bloodhound/site/cgi-bin>=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 WSGI= ProcessGroup bh_tracker
=C2=A0 =C2=A0 =C2=A0 =C2=A0 WSGIApplicationGroup %{GLOBAL}
=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Orde= r deny,allow
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Allo= w from all
=C2=A0 = =C2=A0 </Directory>
=C2=A0 =C2=A0 <LocationMatch "/bloodhound/[^/]+/login"&g= t;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Auth= Type Digest
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 AuthName "Bloodhound"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 AuthDigestDoma= in /bloodhound
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Auth= UserFile /usr/local/bloodhound/installer/bloodhound/environments/main/blood= hound.htdigest
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 Require valid-user
=C2=A0 =C2=A0 </LocationMatch= >
</VirtualHos= t>

=3D=3D=3D

<= div>I ran trac-admin deploy and restarted apache of course. =C2=A0What happ= ens, though, is any attempt to access that VirtualHost at any URI for that = subdomain it's configured for yields a 404, and the error log says this= :

File does not exi= st: /etc/apache2/htdocs

I know that it&= #39;s matching the VirtualHost block because the above error gets written t= o the very file I uniquely specified in the ErrorLog directive within that = block. =C2=A0(The unique access log gets hit also.)

So... anyone have an idea why it would be looking for a= n "htdocs" directory within /etc/apache2/ instead of /usr= /local/bloodhound/installer/bloodhound/site/ ?

In case it's of any help, mod_wsgi emits the follow= ing "info" messages when apache is started:

<= div>
[info] mod_wsgi (pid=3D15156= ): Attach interpreter ''.
[info] mod_wsgi (pid=3D15156): A= dding '/usr/local/bloodhound/installer/bloodhound/lib/python2.7/site-pa= ckages' to path.

=3D=3D=3D
<= div>
Another thing: the Bloodhound installation doc says:=C2=A0
=

The user referred = to in the WSGIDaemonProcess should be the user that you wish bloodhound to = be run as and so that user must have the appropriate set of permissions to = access the Bloodhound installation. Running with any special system level p= rivileges should not be required and is not recommended.

...but it says nothing whatsoever about wh= ich permissions are needed on which files/directories, so we are left to co= mpletely guess, and doing something like=C2=A0

sudo chown -R bloodhound.www-data /usr/l= ocal/bloodhound; sudo chmod -R ug+rwx /usr/local/bloodhound

...is ugly, inconvenient, and overly-permissive at best= , and breaks things at worst. =C2=A0Is there a better way?
--047d7b873d1a01d94c04e690118f--