How to select the directory index file for load balancing?

"Thomas Buehren" <[email protected]> Sun, 26 Oct 2003 13:24:57 +0100
Newsgroups gmane.comp.apache.mod-backhand.general
Message-ID <[email protected]>
Hello,

probably a simple question for you, but I could not find a solution:

I use backhand to load-balance php requests. All the rest should be
processed by the original server. The "Files" selection in the configuration
below does that for me.

The problem: The directory index file "index.php" is not load balanced if
the request is "http://DOMAINNAME/", it only works as
"http://DOMAINNAME/index.php". How can I modify the selection (or add
another) to capture the directory index php file when it is not given in the
URL? (Apache/1.3.20 mod_backhand/1.2.0)

I would be grateful for any help.

Thomas


DirectoryIndex index.jsp index.php3 index.html index.htm

<VirtualHost IPADDRESS:80>
    ServerAdmin [email protected]
    DocumentRoot /usr/local/httpd/htdocs/genieuk
    ServerName DOMAINNAME

    ErrorLog  "|rotatelogs /usr/local/httpd/htdocs/genieuk/stats/error_log
86400"
    CustomLog "|rotatelogs /usr/local/httpd/htdocs/genieuk/stats/access_log
86400" combined

    AddType application/x-httpd-php .php3
    <Directory "/usr/local/httpd/htdocs/genieuk">
      <Files ~ "(\.php3|\.php)$">
        Backhand byAge
        Backhand byRandom
        Backhand byLoad -3.0
      </Files>
    </Directory>
</VirtualHost>