On 7/22/05, Noah K Tilton <[EMAIL PROTECTED]> wrote:
> Ok, cool. I have the comment boxes showing up and the blog will regen
> correctly, you were right Herr Morgan; there was something amiss in my quick
> templates. I also found the cvs
> /usr/lib/ruby/site_ruby/1.8/hobix/README, which helped.
>
> I am using apache2, has anyone done the rewrite rules for that? I gave it a
> shot but !surprise! couldn't figure it out.
Hi Noah,
I'm using it slightly differently to _why's setup (I have no control/
or control/.htaccess in htdocs), on Apache 2:
These are the entries in the <VirtualHost> block:
# Hobix control
RewriteCond /hobix.dir/htdocs%{REQUEST_FILENAME} !-f
RewriteRule ^/control(.*) /hobix.dir/control/hobix.cgi$1 [QSA,L]
And I had to modify hobix.cgi to use one less level of ".." in order
to find hobix.yaml.
$stderr.puts inside hobix libs is your friend :) It will show up in
Apache's error log. If you can get "preview" to work, you're not far
from getting comments proper to work.
Remember that your web user will need permissions to write to the
Hobix entries and selected parts of htdocs for comment submission to
work. If you're going to use both hobix.cgi and use the "hobix"
command line wrapper to regen, you may want to add your command-line
user to the Apache group for simplicity.
The fruits of my labour: http://sttm.xeraph.org/. I've shamelessly
lifted _why's right-to-left username entry boxes ;/
Leon
_______________________________________________
Hobix-is-the-way mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/hobix-is-the-way