Howdy. I'm debugging a backhand install and am trying to figure out
how to get things working (imagine that!). Here's my snippet from my conf
file:
LoadModule backhand_module libexec/mod_backhand.so
AddModule mod_backhand.c
<IfModule mod_backhand.c>
UnixSocketDir /usr/local/apache/backhand
MulticastStats 192.168.1.178 192.168.1.255:4445
AcceptStats 192.168.1.0/24
</IfModule>
<Directory "/www/docs">
Backhand byAge 3
BackhandFromSO libexec/byHostname.so byHostname atlas
Backhand byLogWindow
Backhand byCost
Backhand addPrediction
</Directory>
BackhandLogLevel +netall,+mbcsall,+dcsnall
With that config, when I telnet to port 8000, and "GET / HTTP/1.0",
here's what I get in the log:
orion04# [Wed Jul 12 02:52:50 2000] [notice] (Translate <=) = { /, (null),
(null) }
[Wed Jul 12 02:52:50 2000] [notice] (Translate =>) = { /, (null), (null) }
[Wed Jul 12 02:52:50 2000] [notice] (Type <=) = { (null), /, (null) }
[Wed Jul 12 02:52:50 2000] [notice] Func executed for (null) [byAge(3)] (256
-> 11)
[Wed Jul 12 02:52:50 2000] [notice] Func executed for (null)
[libexec/byHostname.so::byHostname((atlas))] (11 -> 5)
[Wed Jul 12 02:52:50 2000] [notice] Func executed for (null)
[byLogWindow(NULL)] (5 -> 2)
[Wed Jul 12 02:52:50 2000] [notice] Func executed for (null) [byCost(NULL)]
(2 -> 1)
[Wed Jul 12 02:52:50 2000] [notice] Func executed for (null)
[addPrediction(NULL)] (1 -> 1)
[Wed Jul 12 02:52:50 2000] [notice] All funcs executed -> atlas04.internal
[Wed Jul 12 02:52:50 2000] [notice] (Type =>) = *{ backhand-redirection,
backhand:/, backhand/redirect }
[Wed Jul 12 02:52:50 2000] [notice] (Postread =>) = { Backhanding to 2 }
[Wed Jul 12 02:52:50 2000] [notice] (Postread =>) = { backhand:/,
backhand-redirection, (null) }
[Wed Jul 12 02:52:50 2000] [notice] (Translate <=) = { backhand:/,
backhand-redirection, (null) }
[Wed Jul 12 02:52:50 2000] [notice] (Type <=) = { backhand-redirection, /,
(null) }
[Wed Jul 12 02:52:50 2000] [notice] (Type =>) = *{ backhand-redirection, /,
(null) }
And the system blocks on a socket and you sit there for a LONG time.
The atlas hosts have the same backhand config, just no <Directory>
directive. Any thoughts?
-sc
Orion hosts =~ proxy servers
Atlas == app servers
how to get things working (imagine that!). Here's my snippet from my conf
file:
LoadModule backhand_module libexec/mod_backhand.so
AddModule mod_backhand.c
<IfModule mod_backhand.c>
UnixSocketDir /usr/local/apache/backhand
MulticastStats 192.168.1.178 192.168.1.255:4445
AcceptStats 192.168.1.0/24
</IfModule>
<Directory "/www/docs">
Backhand byAge 3
BackhandFromSO libexec/byHostname.so byHostname atlas
Backhand byLogWindow
Backhand byCost
Backhand addPrediction
</Directory>
BackhandLogLevel +netall,+mbcsall,+dcsnall
With that config, when I telnet to port 8000, and "GET / HTTP/1.0",
here's what I get in the log:
orion04# [Wed Jul 12 02:52:50 2000] [notice] (Translate <=) = { /, (null),
(null) }
[Wed Jul 12 02:52:50 2000] [notice] (Translate =>) = { /, (null), (null) }
[Wed Jul 12 02:52:50 2000] [notice] (Type <=) = { (null), /, (null) }
[Wed Jul 12 02:52:50 2000] [notice] Func executed for (null) [byAge(3)] (256
-> 11)
[Wed Jul 12 02:52:50 2000] [notice] Func executed for (null)
[libexec/byHostname.so::byHostname((atlas))] (11 -> 5)
[Wed Jul 12 02:52:50 2000] [notice] Func executed for (null)
[byLogWindow(NULL)] (5 -> 2)
[Wed Jul 12 02:52:50 2000] [notice] Func executed for (null) [byCost(NULL)]
(2 -> 1)
[Wed Jul 12 02:52:50 2000] [notice] Func executed for (null)
[addPrediction(NULL)] (1 -> 1)
[Wed Jul 12 02:52:50 2000] [notice] All funcs executed -> atlas04.internal
[Wed Jul 12 02:52:50 2000] [notice] (Type =>) = *{ backhand-redirection,
backhand:/, backhand/redirect }
[Wed Jul 12 02:52:50 2000] [notice] (Postread =>) = { Backhanding to 2 }
[Wed Jul 12 02:52:50 2000] [notice] (Postread =>) = { backhand:/,
backhand-redirection, (null) }
[Wed Jul 12 02:52:50 2000] [notice] (Translate <=) = { backhand:/,
backhand-redirection, (null) }
[Wed Jul 12 02:52:50 2000] [notice] (Type <=) = { backhand-redirection, /,
(null) }
[Wed Jul 12 02:52:50 2000] [notice] (Type =>) = *{ backhand-redirection, /,
(null) }
And the system blocks on a socket and you sit there for a LONG time.
The atlas hosts have the same backhand config, just no <Directory>
directive. Any thoughts?
-sc
Orion hosts =~ proxy servers
Atlas == app servers