You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Matt Schillinger <ms...@vss.fsi.com> on 2002/02/25 18:27:25 UTC
rnd:// for reverse proxy
Hello,
I have followed the guidelines set by the URL Rewriting Guide, and the
reverse proxy works for the most part, but the rnd:/path/to/file is not
randomly pulling a hostname.. it always pulls the first entry..
is this the correct assumption of how rnd works? Included is my
/usr/apache/conf/httpd.conf
and
/usr/apache/conf/rproxy.conf
#### htttpd.conf
LoadModule proxy_module libexec/libproxy.so
LoadModule rewrite_module libexec/mod_rewrite.so
User nobody
Group nobody
ServerType standalone
ServerName pluto.vss.fsi.com
Port 8000
MinSpareServers 16
StartServers 16
MaxSpareServers 16
MaxClients 100
MaxRequestsPerChild 100
KeepAlive on
MaxKeepAliveRequests 100
KeepAliveTimeout 15
Timeout 400
IdentityCheck off
HostnameLookups off
PidFile /usr/apache/logs/apache-rproxy.pid
LockFile /usr/apache/logs/apache-rproxy.lock
ErrorLog /usr/apache/logs/apache-rproxy.elog
CustomLog /usr/apache/logs/apache-rproxy.dlog "%{%v/%T}t %h -> %{SERVER}e URL: %U"
ServerRoot /usr/apache
DocumentRoot /tmp
CacheRoot /tmp
RewriteLog /dev/null
TransferLog /dev/null
TypesConfig /dev/null
AccessConfig /dev/null
ResourceConfig /dev/null
<Directory />
Options -FollowSymLinks -SymLinksIfOwnerMatch
AllowOverride None
</Directory>
<Location /apache-rproxy-status>
SetHandler server-status
</Location>
RewriteEngine on
RewriteLogLevel 0
RewriteMap server rnd:/usr/apache/conf/rproxy.conf
RewriteRule ^/apache-rproxy-status.* - [L]
RewriteRule ^(http|ftp)://.* - [F]
RewriteRule ^/(.*\.(cgi|shtml))$ to://${server:dynamic}/$1 [S=1]
RewriteRule ^/(.*)$ to://${server:static}/$1
RewriteRule ^to://([^/]+)/(.*) http://$1/$2 [E=SERVER:$1,P,L]
RewriteRule .* - [F]
ProxyRequests on
NoCache *
ProxyPassReverse / http://pluto1.vss.fsi.com/
ProxyPassReverse / http://pluto2.vss.fsi.com/
ProxyPassReverse / http://pluto3.vss.fsi.com/
ProxyPassReverse / http://pluto4.vss.fsi.com/
############ End httpd.conf
here is the rproxy.conf
#### rproxy.conf
static pluto2|pluto3|pluto4
dynamic support|sysadmin|www
### end rproxy.conf
Thanks for the help.
Matt Schillinger
mschilli@vss.fsi.com
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org