Thanks drco for the inspiration.
I decided to create a working example based on my real website (domain names and ip addresses are not real).
Note I had to use Location elements to isolate the /stylesheets, /images and /javascript folders. In future I will use a single /assets folder to DRY this up a bit.
I have a WAMP based apache server acting as reverse proxy to blend Windows IIS server subfolders with a linux based RAILS server with RAILS assets coming from Amazon S3. Now when I do development with this site it is protected using Digest Authorization. Which also allows me the ability to let a small number of clients directly access the beta.
#========================
# B E T A . E X A M P L E . C O M
#
<VirtualHost *:80>
ServerAdmin admin@example.com
ServerName beta.example.com
ServerAlias www.beta.example.com
DocumentRoot "D:/wamp/www_proxy"
ErrorLog "D:/wamp/logs/beta.example.com-error.log"
CustomLog "D:/wamp/logs/beta.example.com-access.log" combined
ProxyRequests Off
<Proxy *>
Order Deny,Allow
Deny from All
Allow from 127.0.0.1
Include "D:\wamp\admin-allow.inc"
AuthType Digest
# realm associated with digest passwd
AuthName "BETA-ACCESS"
AuthDigestDomain /
AuthUserFile "D:/wamp/digest"
Require valid-user
Satisfy Any
</Proxy>
# I I S
ProxyPass /ddaps http://localhost:8104/ddaps
ProxyPassReverse /ddaps http://localhost:8104/ddaps
ProxyPass /admin http://localhost:8104/admin
ProxyPassReverse /admin http://localhost:8104/admin
ProxyPass /themes http://localhost:8104/themes
ProxyPassReverse /themes http://localhost:8104/themes
# RAIL ASSETS
ProxyPass /stylesheets http://lib.example.com/stylesheets
ProxyPassReverse /stylesheets http://lib.example.com/stylesheets
<Location /stylesheets>
RequestHeader unset Authorization
</Location>
ProxyPass /images http://lib.example.com/images
ProxyPassReverse /images http://lib.example.com/images
<Location /images>
RequestHeader unset Authorization
</Location>
ProxyPass /javascripts http://lib.example.com/javascripts
ProxyPassReverse /javascripts http://lib.example.com/javascripts
<Location /javascripts>
RequestHeader unset Authorization
</Location>
# R A I L S
ProxyPass / http://xxx.xxx.xxx.xxx:8104/
ProxyPassReverse / http://xxx.xxx.xxx.xxx:8104/
</VirtualHost>
.