We use AliasMatch for the same thing, in the main configuration section
so that it gets populated for all virtual hosts as well - 

AliasMatch ^/[Cc][Ff][Ii][Dd][Ee](.*) "F:/cfide/$1"
AliasMatch ^/[Aa][Ll][Ll][Aa][Ii][Rr][Ee](.*) "F:/allaire/$1"

where F: is the documentroot. Alias will work as well.


Dave Watts wrote:
> 
> > does anyone have a working rewrite rule for virtual hosts to link
> > the /allaire/spectra/ webdirectory to another server? I've added
> > the following lines:
> >
> >     RewriteEngine on
> >     RewriteRule   ^\/(allaire\/.+)  http://www.otherhost.com/$1  [R,L]
> >
> > When the user accesses /allaire/spectra/...., the correct page from
> > the other host comes up. But all images with <img
> src="/allaire/spectra/system/...">
> > doesn't appear.
> >
> > It would be nice to maintain only one /allaire/spectra/
> > webdirectory, and not as many as we have virtual hosts defined.
> 
> I'm no Apache expert, but can't you do this with the Alias directive?
> 
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
> voice: (202) 797-5496
> fax: (202) 797-5444
> 
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to