Hello again,
having read the mail of Bryan Ross who also has problems with the
DirectoryIndex, I wonder if my problem of how to load balance the directory
index file might result from a mod_backhand error:
This works with the directory index file index.php (http://DOMAINNAME/
returns a 403 forbidden):
<Directory "/usr/local/httpd/htdocs/genieuk">
<Files ~ "(\.php3|\.php)$">
Order allow,deny
Deny from all
</Files>
</Directory>
So, the Files statement seems to include my index.php directory index file.
BUT this does not work with index.php (http://DOMAINNAME/index.php is load
balanced, but http://DOMAINNAME/ is always executed on the original server):
<Directory "/usr/local/httpd/htdocs/genieuk">
<Files ~ "(\.php3|\.php)$">
Backhand byAge
Backhand byRandom
Backhand byLoad -3.0
</Files>
</Directory>
Does anyone know how to enable load balancing for http://DOMAINNAME/?
Thomas
> -----Original Message-----
> From: backhand-users-admin@lists.backhand.org
> [mailto:backhand-users-admin@lists.backhand.org]On Behalf Of Thomas
> Buehren
> Sent: Sunday, October 26, 2003 1:25 PM
>
> 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 genie@peperoni.de
> 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>
having read the mail of Bryan Ross who also has problems with the
DirectoryIndex, I wonder if my problem of how to load balance the directory
index file might result from a mod_backhand error:
This works with the directory index file index.php (http://DOMAINNAME/
returns a 403 forbidden):
<Directory "/usr/local/httpd/htdocs/genieuk">
<Files ~ "(\.php3|\.php)$">
Order allow,deny
Deny from all
</Files>
</Directory>
So, the Files statement seems to include my index.php directory index file.
BUT this does not work with index.php (http://DOMAINNAME/index.php is load
balanced, but http://DOMAINNAME/ is always executed on the original server):
<Directory "/usr/local/httpd/htdocs/genieuk">
<Files ~ "(\.php3|\.php)$">
Backhand byAge
Backhand byRandom
Backhand byLoad -3.0
</Files>
</Directory>
Does anyone know how to enable load balancing for http://DOMAINNAME/?
Thomas
> -----Original Message-----
> From: backhand-users-admin@lists.backhand.org
> [mailto:backhand-users-admin@lists.backhand.org]On Behalf Of Thomas
> Buehren
> Sent: Sunday, October 26, 2003 1:25 PM
>
> 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 genie@peperoni.de
> 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>