Thanks Brad,

I got it working with both sym links in the virtual host directories
and by setting up aliases in the apache vhost conf file like:

alias /lib /path/to/site/shared/lib

Would you mind sharing your apache vhost conf files?  We have some
that we pulled and modified from aparajita's wiki, but I would be
interested in comparing notes to see if we're doing Rewrites and
configs the same way.

Thanks,

Michael Check
Solo Group, Inc.
www.sologroup.com

On Thu, Oct 16, 2008 at 9:59 AM, Brad Perkins <[EMAIL PROTECTED]> wrote:
> Michael,
>
> I'm unclear if the virtual hosts you refer to are A4D vhosts or Apache.
> I think it is the former though, and must admit I have little experience
> with A4D vhosts.
>
> I have an a4d site that serves 3 separate domains. A4D is behind Apache.
> All of my shared javascript, css, and images reside in Apache's document
> space which is at
>
> /Library/WebServer/Documents/
>
> Therefore as an example I have
>
> /Library/WebServer/Documents/default
>    img/
>    scripts/
>    css/
> /Library/WebServer/Documents/foo
>    img/
>    scripts/
>    css/
> /Library/WebServer/Documents/bar
>    img/
>    scripts/
>    css/
>
> For the foo and bar sites the img/, scripts/, and css/ folders are
> actually symlinks to the corresponding  folders in default. There may be
> a better way to do this, but it works well for us.
>
> hth,
>
> Brad
>
> Michael Check wrote:
>> We're creating a site for a client that actually has three (hopefully
>> more soon) semi-related sites.
>>
>> We've built them in fusebox and have them reside in
>>
>> <default>/sites/site1
>> <default>/sites/site2
>> <default>/sites/site3
>>
>> javascript libraries (e.g. Ext and Prototype) and images are in:
>> <default>web_static
>>
>> We want the sites to have separate cookies and separate sessions, so I
>> think we have to use different host names, correct?
>> The VirtualHosts.ini has:
>>
>> site1.domain.com:8080    sites/site1
>> site2.domain.com:8080    sites/site2
>> site3.domain.com:8080    sites/site3
>>
>> We are using apache to serve the front end but it will not serve the
>> web_static files because it cannot find them.  It appears they ned to
>> be within the virtual host DocumentRoot, which web_static is not.  How
>> can apache find them outside the DocRoot?
>>
>> And further, where can we place A4D files that are shared between the
>> sites for ajax access.  The ajax calls use a url fromatted like
>> http:// + baseURL + ajaxfile.a4d.  We define baseURL from the request
>> base url and want the ajaxfile.a4d to be the same as is used for all
>> the sites.  So we want
>> site1.domain.com/lib/ajaxfile.a4d  AND
>> site2.domain.com/lib/ajaxfile.a4d
>> to refer to the same file.
>> Where can we place these files so they are accessible for all the
>> virtual sites, and accessible via apache?
>>
>> If we place all the sites _within_ the same fusebox site (only one
>> fbx_circuits), the cookies and sessions are mixed together and their
>> doesn't seem to be a way to point to the individual sites with
>> different host names.
>>
>> Thanks,
>>
>> Michael Check
>> _______________________________________________
>> Active4D-dev mailing list
>> [email protected]
>> http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
>> Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/
>>
>>
>
> _______________________________________________
> Active4D-dev mailing list
> [email protected]
> http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
> Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/
>



-- 
Thanks,

Michael Check
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to