No, I didn't have any other virtual host definitions. The output of
`apachectl -S` was:
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:80 redmine (/private/etc/apache2/users/
redmine.conf:17)
Syntax OK
After RTFM'ing about vhosts (
http://httpd.apache.org/docs/2.2/vhosts/
name-based.html) and adding a VirtualHost for localhost, now
`apachectl -S` is:
[Sat Sep 11 20:51:44 2010] [warn] NameVirtualHost *:80 has no
VirtualHosts
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:80 is a NameVirtualHost
default server localhost (/private/etc/apache2/extra/httpd-
vhosts.conf:46)
port 80 namevhost localhost (/private/etc/apache2/extra/httpd-
vhosts.conf:46)
port 80 namevhost redmine.mattbookpro.local (/private/etc/
apache2/users/redmine.conf:17)
port 80 namevhost localhost (/private/etc/apache2/extra/httpd-
vhosts.conf:46)
Syntax OK
Dunno about that warning, but it seems to work correctly now. Thanks
for the hint!
Still, I'd like to avoid the whole virtual host thing if possible and
just stick the rails app in a Directory, but I can't see how to do
that. In the mod_rails documentation there's instructions for putting
a rails app in a Sub-URI, but only a Sub-URI of a virtual host....
Any ideas?
Thanks,
Matt
> > web browser athttp://redmine.local/itworks as expected.