Hi Aparajita
Last week you made this remark regarding using 4D's web server as an
image server 'in front of' Active4D.
If you actually create the web folder designated in the web server
preferences, then On Web Connection will not be called, unless you
use /4dcgi as a prefix for _every_ Active4D page. If you are
willing to do that, then what you are suggesting would work.
However, my understanding is that 'On Web Connection' is always
called if the actual requested page or content isn't found, even if
the 'webDecoy' folder exists for real and without adding the '4dcgi'
prefix.
I've been testing a configuration where the images are all stored in
the '4D Preferences' web root and the rest of the site (dynamic
pages) are stored in the 'Active4D' preferences web root folder. (a
different location) This seems to work very well, i.e.
- when 4D web server receives an image request, it serves the image
straight away without calling 'On Web Connection'
- when 4D web server receives a dynamic page request, it doesn't
find it, calls 'On Web Connection' and Active4D takes over
The configuration even works with relative image URL's whether I
place them in the 'real' site folder or in 4D's 'Web Preferences'
root folder since both 4D and Active4D correctly locate the image
relative to their respective web roots.
Will this configuration allow me to take advantages of 4D's web cache ?
Do you see any 'show stoppers' in this approach ?
I am still under instructions to implement the Apache approach (to do
URL rewrites amongst other things), however, I am considering
implementing this configuration in the short term till then.
Best Regards
Peter
_______________________________________________
Active4D-dev mailing list
Active4D-dev@aparajitaworld.com
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/