Ask a Jedi: Apache Virtual Hosts and Remoting

Scott asks:

Ray, I wondered if you could provide any insight on how to set up virtual hosts on apache so that flash remoting works for each? Thanks.

As far as I know, all you need is an alias for the CFIDE folder. This is also used for Flash Forms as well as forms support in general. This is a typical virtual host on my box:

<VirtualHost *> ServerName dev.aspen5.jedi.com DocumentRoot "C:/projects/dev.aspen5.mindseye.com/wwwroot" Alias /CFIDE "c:/Apache2/htdocs/CFIDE" </VirtualHost>

Edited: Just a quick note, but as Critter points out in the comments, you should be able to move that alias outside the virtual host declaration if you want it global to the box. That would probably be preferable, especially if the entire box is just hosting CF applications.

Archived Comments

Comment 1 by Critter posted on 10/23/2005 at 7:20 PM

IIRC you should be able to setup the /CFIDE as a global alias, so that you do not have to include it in each directive. i am pretty sure that is how i have mine setup.. i'd login and grab an example.. but my server is currently afk.

Comment 2 by Raymond Camden posted on 10/23/2005 at 7:38 PM

I definitely just know enough Apache to get by. But that makes sense - of course Apache would have global aliases.

Comment 3 by Raymond Camden posted on 10/23/2005 at 7:42 PM

I modified the main entry a bit.

Comment 4 by Brett Liotta posted on 10/23/2005 at 7:57 PM

That's interesting. Can you do Global Aliasing (or any Aliasing) in IIS?

Comment 5 by Luis Majano posted on 10/24/2005 at 12:16 AM

Also, if you are under a linux environment, I had some weird results with flash forms and remoting if I did not have a cfide alias too.

I had to create both CFIDE and cfide symbolic links on my virtual hosts.

I also had problems when mod_spelling is loaded. I had to disable spell checking on the CFIDE/cfide directories in order for all my flash forms and remoting to work properly.

Just a quick note.

Luis Majano
www.luismajano.com