I'm having problems getting files with extensions to balance between web=20=
servers.
http://bh.hipdesign.com/test will redirect to the other server=20
(bh1-2.hipdesign.com)
but http://bh.hipdesign.com/test.html will not redirect to the other=20
server (bh1-2.hipdesign.com).
I've experimented with using <Files ~ "(\.html)$"> and also with out the=20=
files directive.
I am thinking I may have the files directive setup incorrectly but not=20=
sure how to write it out correctly.
To add mod_backhand I used apxs.
My configs and log files....
The test cgi shows both servers online.
http://bh.hipdesign.com/backhand/
Entry Hostname Age Address Total Mem Avail Mem =
# ready servers/
# total servers ~ms/req [#req] Arriba # CPUs Load/HWM CPU Idle
0 bh1-1.hipdesign.com 0 65.84.71.167:80 1003=A0MB =
836=A0MB 8/8 0 [0] 4022740 2=09
0.000/16 1.000
1 bh1-2.hipdesign.com 0 65.84.71.166:80 124=A0MB =
95=A0MB 10/10 494 [3] 429363=09
1 0.000/16 0.98
httpd.conf
<VirtualHost 65.84.71.167>
ServerName bh.hipdesign.com
<Directory "/var/www/html">
Options +Indexes
<Files ~ "(\.html)$">
Backhand byRandom
Backhand HTTPRedirectToName
</files>
</Directory>
<Directory "/home/httpd/cgi-bin/">
AllowOverride None
Options None
Order allow,deny
Allow from all
Backhand byAge 2
Backhand byLoad
</Directory>
</VirtualHost>
<IfModule mod_backhand.c>
UnixSocketDir /var/backhand/backhand
MulticastStats 65.84.71.191:4445,1
AcceptStats 65.84.71.0/16
BackhandLogLevel +netall
BackhandLogLevel +mbcsall
BackhandLogLevel +dcsnall
<Location "/backhand/">
SetHandler backhand-handler
</Location>
</IfModule>
error_log from bh1-1.hipdesign.com accessing=20
http://bh.hipdesign.com/test.html
[Wed Jun 12 12:43:19 2002] [notice] (Translate <=3D) =3D { /test.html,=20=
(null), (null) }
[Wed Jun 12 12:43:19 2002] [notice] (Translate =3D>) =3D { /test.html,=20=
(null), (null) }
[Wed Jun 12 12:43:19 2002] [notice] (Translate <=3D) =3D { /test.html,=20=
(null), (null) }
[Wed Jun 12 12:43:19 2002] [notice] (Translate =3D>) =3D { /test.html,=20=
(null), (null) }
[Wed Jun 12 12:43:19 2002] [notice] (Postread =3D>) =3D { DECLINED }
[Wed Jun 12 12:43:19 2002] [notice] (Translate <=3D) =3D { /test.html,=20=
(null), (null) }
[Wed Jun 12 12:43:19 2002] [notice] (Translate =3D>) =3D { /test.html,=20=
(null), (null) }
[Wed Jun 12 12:43:20 2002] [notice] (Translate <=3D) =3D { /test.html,=20=
(null), (null) }
[Wed Jun 12 12:43:20 2002] [notice] (Translate =3D>) =3D { /test.html,=20=
(null), (null) }
[Wed Jun 12 12:43:20 2002] [notice] (Postread =3D>) =3D { DECLINED }
[Wed Jun 12 12:43:20 2002] [notice] (Translate <=3D) =3D { /test.html,=20=
(null), (null) }
[Wed Jun 12 12:43:20 2002] [notice] (Translate =3D>) =3D { /test.html,=20=
(null), (null) }
[Wed Jun 12 12:43:20 2002] [notice] (Translate <=3D) =3D { /test.html,=20=
(null), (null) }
[Wed Jun 12 12:43:20 2002] [notice] (Translate =3D>) =3D { /test.html,=20=
(null), (null) }
[Wed Jun 12 12:43:20 2002] [notice] (Postread =3D>) =3D { DECLINED }
[Wed Jun 12 12:43:20 2002] [notice] (Translate <=3D) =3D { /test.html,=20=
(null), (null) }
[Wed Jun 12 12:43:20 2002] [notice] (Translate =3D>) =3D { /test.html,=20=
(null), (null) }
[Wed Jun 12 12:43:21 2002] [notice] (Translate <=3D) =3D { /test.html,=20=
(null), (null) }
[Wed Jun 12 12:43:21 2002] [notice] (Translate =3D>) =3D { /test.html,=20=
(null), (null) }
error_log from bh1-1.hipdesign.com accessing test=20
http://bh.hipdesign.com/test
[Wed Jun 12 12:43:24 2002] [notice] Func executed for (null)=20
[byRandom(NULL)] (2 -> 2)
[Wed Jun 12 12:43:24 2002] [notice] New server list: [ 1 0 ]
[Wed Jun 12 12:43:24 2002] [notice] Func executed for (null)=20
[HTTPRedirectToName(NULL)] (2 -> 2)
[Wed Jun 12 12:43:24 2002] [notice] New server list: [ 1 0 ]
[Wed Jun 12 12:43:24 2002] [notice] All funcs executed ->=20
bh1-2.hipdesign.com
[Wed Jun 12 12:43:24 2002] [notice] (Type =3D>) =3D *{ =
backhand-redirection,=20
backhand:/test, backhand/redirect }
[Wed Jun 12 12:43:24 2002] [notice] (Postread =3D>) =3D { Backhanding to =
1 }
[Wed Jun 12 12:43:24 2002] [notice] (Postread =3D>) =3D { =
backhand:/test,=20
backhand-redirection, (null) }
[Wed Jun 12 12:43:24 2002] [notice] (Translate <=3D) =3D { =
backhand:/test,=20
backhand-redirection, (null) }
[Wed Jun 12 12:43:24 2002] [notice] (Type <=3D) =3D { =
backhand-redirection,=20
/test, (null) }
[Wed Jun 12 12:43:24 2002] [notice] (Type =3D>) =3D *{ =
backhand-redirection,=20
/test, (null) }
[Wed Jun 12 12:43:24 2002] [error] HTTP Redirection by name [1]
[Wed Jun 12 12:43:24 2002] [notice] (Postread =3D>) =3D { DECLINED }
[Wed Jun 12 12:43:24 2002] [notice] (Translate <=3D) =3D { /test, =
(null),=20
(null) }
[Wed Jun 12 12:43:24 2002] [notice] (Translate =3D>) =3D { /test, =
(null),=20
(null) }
[Wed Jun 12 12:43:24 2002] [notice] (Type <=3D) =3D { (null), /test, =
(null) }
[Wed Jun 12 12:43:24 2002] [notice] (Type =3D>) =3D { (null), /test, =
(null) }
[Wed Jun 12 12:43:24 2002] [notice] Reseting connection remote_addr to=20=
65.84.71.162
Access log from error_log from bh1-1.hipdesign.com accessing=20
http://bh.hipdesign.com/test.html
65.84.71.163 - - [12/Jun/2002:12:43:19 -0700] "GET /test.html HTTP/1.1"=20=
200 77 "-" "Mozilla/4.5 (compatible; OmniWeb/4.1-v399; Mac_PowerPC)"
65.84.71.163 - - [12/Jun/2002:12:43:20 -0700] "GET /test.html HTTP/1.1"=20=
200 77 "-" "Mozilla/4.5 (compatible; OmniWeb/4.1-v399; Mac_PowerPC)"
65.84.71.163 - - [12/Jun/2002:12:43:20 -0700] "GET /test.html HTTP/1.1"=20=
200 77 "-" "Mozilla/4.5 (compatible; OmniWeb/4.1-v399; Mac_PowerPC)"
65.84.71.163 - - [12/Jun/2002:12:43:21 -0700] "GET /test.html HTTP/1.1"=20=
200 77 "-" "Mozilla/4.5 (compatible; OmniWeb/4.1-v399; Mac_PowerPC)"
65.84.71.163 - - [12/Jun/2002:12:43:21 -0700] "GET /test.html HTTP/1.1"=20=
200 77 "-" "Mozilla/4.5 (compatible; OmniWeb/4.1-v399; Mac_PowerPC)"
Access log from error_log from bh1-1.hipdesign.com accessing=20
http://bh.hipdesign.com/test
65.84.71.163 - - [12/Jun/2002:12:43:24 -0700] "GET /test HTTP/1.1" 302=20=
296 "-" "Mozilla/4.5 (compatible; OmniWeb/4.1-v399; Mac_PowerPC)"
65.84.71.163 - - [12/Jun/2002:12:43:24 -0700] "GET /test HTTP/1.0" 200=20=
77 "-" "Mozilla/4.5 (compatible; OmniWeb/4.1-v399; Mac_PowerPC)"
servers.
http://bh.hipdesign.com/test will redirect to the other server=20
(bh1-2.hipdesign.com)
but http://bh.hipdesign.com/test.html will not redirect to the other=20
server (bh1-2.hipdesign.com).
I've experimented with using <Files ~ "(\.html)$"> and also with out the=20=
files directive.
I am thinking I may have the files directive setup incorrectly but not=20=
sure how to write it out correctly.
To add mod_backhand I used apxs.
My configs and log files....
The test cgi shows both servers online.
http://bh.hipdesign.com/backhand/
Entry Hostname Age Address Total Mem Avail Mem =
# ready servers/
# total servers ~ms/req [#req] Arriba # CPUs Load/HWM CPU Idle
0 bh1-1.hipdesign.com 0 65.84.71.167:80 1003=A0MB =
836=A0MB 8/8 0 [0] 4022740 2=09
0.000/16 1.000
1 bh1-2.hipdesign.com 0 65.84.71.166:80 124=A0MB =
95=A0MB 10/10 494 [3] 429363=09
1 0.000/16 0.98
httpd.conf
<VirtualHost 65.84.71.167>
ServerName bh.hipdesign.com
<Directory "/var/www/html">
Options +Indexes
<Files ~ "(\.html)$">
Backhand byRandom
Backhand HTTPRedirectToName
</files>
</Directory>
<Directory "/home/httpd/cgi-bin/">
AllowOverride None
Options None
Order allow,deny
Allow from all
Backhand byAge 2
Backhand byLoad
</Directory>
</VirtualHost>
<IfModule mod_backhand.c>
UnixSocketDir /var/backhand/backhand
MulticastStats 65.84.71.191:4445,1
AcceptStats 65.84.71.0/16
BackhandLogLevel +netall
BackhandLogLevel +mbcsall
BackhandLogLevel +dcsnall
<Location "/backhand/">
SetHandler backhand-handler
</Location>
</IfModule>
error_log from bh1-1.hipdesign.com accessing=20
http://bh.hipdesign.com/test.html
[Wed Jun 12 12:43:19 2002] [notice] (Translate <=3D) =3D { /test.html,=20=
(null), (null) }
[Wed Jun 12 12:43:19 2002] [notice] (Translate =3D>) =3D { /test.html,=20=
(null), (null) }
[Wed Jun 12 12:43:19 2002] [notice] (Translate <=3D) =3D { /test.html,=20=
(null), (null) }
[Wed Jun 12 12:43:19 2002] [notice] (Translate =3D>) =3D { /test.html,=20=
(null), (null) }
[Wed Jun 12 12:43:19 2002] [notice] (Postread =3D>) =3D { DECLINED }
[Wed Jun 12 12:43:19 2002] [notice] (Translate <=3D) =3D { /test.html,=20=
(null), (null) }
[Wed Jun 12 12:43:19 2002] [notice] (Translate =3D>) =3D { /test.html,=20=
(null), (null) }
[Wed Jun 12 12:43:20 2002] [notice] (Translate <=3D) =3D { /test.html,=20=
(null), (null) }
[Wed Jun 12 12:43:20 2002] [notice] (Translate =3D>) =3D { /test.html,=20=
(null), (null) }
[Wed Jun 12 12:43:20 2002] [notice] (Postread =3D>) =3D { DECLINED }
[Wed Jun 12 12:43:20 2002] [notice] (Translate <=3D) =3D { /test.html,=20=
(null), (null) }
[Wed Jun 12 12:43:20 2002] [notice] (Translate =3D>) =3D { /test.html,=20=
(null), (null) }
[Wed Jun 12 12:43:20 2002] [notice] (Translate <=3D) =3D { /test.html,=20=
(null), (null) }
[Wed Jun 12 12:43:20 2002] [notice] (Translate =3D>) =3D { /test.html,=20=
(null), (null) }
[Wed Jun 12 12:43:20 2002] [notice] (Postread =3D>) =3D { DECLINED }
[Wed Jun 12 12:43:20 2002] [notice] (Translate <=3D) =3D { /test.html,=20=
(null), (null) }
[Wed Jun 12 12:43:20 2002] [notice] (Translate =3D>) =3D { /test.html,=20=
(null), (null) }
[Wed Jun 12 12:43:21 2002] [notice] (Translate <=3D) =3D { /test.html,=20=
(null), (null) }
[Wed Jun 12 12:43:21 2002] [notice] (Translate =3D>) =3D { /test.html,=20=
(null), (null) }
error_log from bh1-1.hipdesign.com accessing test=20
http://bh.hipdesign.com/test
[Wed Jun 12 12:43:24 2002] [notice] Func executed for (null)=20
[byRandom(NULL)] (2 -> 2)
[Wed Jun 12 12:43:24 2002] [notice] New server list: [ 1 0 ]
[Wed Jun 12 12:43:24 2002] [notice] Func executed for (null)=20
[HTTPRedirectToName(NULL)] (2 -> 2)
[Wed Jun 12 12:43:24 2002] [notice] New server list: [ 1 0 ]
[Wed Jun 12 12:43:24 2002] [notice] All funcs executed ->=20
bh1-2.hipdesign.com
[Wed Jun 12 12:43:24 2002] [notice] (Type =3D>) =3D *{ =
backhand-redirection,=20
backhand:/test, backhand/redirect }
[Wed Jun 12 12:43:24 2002] [notice] (Postread =3D>) =3D { Backhanding to =
1 }
[Wed Jun 12 12:43:24 2002] [notice] (Postread =3D>) =3D { =
backhand:/test,=20
backhand-redirection, (null) }
[Wed Jun 12 12:43:24 2002] [notice] (Translate <=3D) =3D { =
backhand:/test,=20
backhand-redirection, (null) }
[Wed Jun 12 12:43:24 2002] [notice] (Type <=3D) =3D { =
backhand-redirection,=20
/test, (null) }
[Wed Jun 12 12:43:24 2002] [notice] (Type =3D>) =3D *{ =
backhand-redirection,=20
/test, (null) }
[Wed Jun 12 12:43:24 2002] [error] HTTP Redirection by name [1]
[Wed Jun 12 12:43:24 2002] [notice] (Postread =3D>) =3D { DECLINED }
[Wed Jun 12 12:43:24 2002] [notice] (Translate <=3D) =3D { /test, =
(null),=20
(null) }
[Wed Jun 12 12:43:24 2002] [notice] (Translate =3D>) =3D { /test, =
(null),=20
(null) }
[Wed Jun 12 12:43:24 2002] [notice] (Type <=3D) =3D { (null), /test, =
(null) }
[Wed Jun 12 12:43:24 2002] [notice] (Type =3D>) =3D { (null), /test, =
(null) }
[Wed Jun 12 12:43:24 2002] [notice] Reseting connection remote_addr to=20=
65.84.71.162
Access log from error_log from bh1-1.hipdesign.com accessing=20
http://bh.hipdesign.com/test.html
65.84.71.163 - - [12/Jun/2002:12:43:19 -0700] "GET /test.html HTTP/1.1"=20=
200 77 "-" "Mozilla/4.5 (compatible; OmniWeb/4.1-v399; Mac_PowerPC)"
65.84.71.163 - - [12/Jun/2002:12:43:20 -0700] "GET /test.html HTTP/1.1"=20=
200 77 "-" "Mozilla/4.5 (compatible; OmniWeb/4.1-v399; Mac_PowerPC)"
65.84.71.163 - - [12/Jun/2002:12:43:20 -0700] "GET /test.html HTTP/1.1"=20=
200 77 "-" "Mozilla/4.5 (compatible; OmniWeb/4.1-v399; Mac_PowerPC)"
65.84.71.163 - - [12/Jun/2002:12:43:21 -0700] "GET /test.html HTTP/1.1"=20=
200 77 "-" "Mozilla/4.5 (compatible; OmniWeb/4.1-v399; Mac_PowerPC)"
65.84.71.163 - - [12/Jun/2002:12:43:21 -0700] "GET /test.html HTTP/1.1"=20=
200 77 "-" "Mozilla/4.5 (compatible; OmniWeb/4.1-v399; Mac_PowerPC)"
Access log from error_log from bh1-1.hipdesign.com accessing=20
http://bh.hipdesign.com/test
65.84.71.163 - - [12/Jun/2002:12:43:24 -0700] "GET /test HTTP/1.1" 302=20=
296 "-" "Mozilla/4.5 (compatible; OmniWeb/4.1-v399; Mac_PowerPC)"
65.84.71.163 - - [12/Jun/2002:12:43:24 -0700] "GET /test HTTP/1.0" 200=20=
77 "-" "Mozilla/4.5 (compatible; OmniWeb/4.1-v399; Mac_PowerPC)"