[opencms-dev] publish directly

Martin Kuba makub at ics.muni.cz
Mon Nov 29 10:26:56 CET 2004


Alexander Kandzior wrote:
> Sure they don't exist, that's why it's called "on demand", the files are
> generated when they are requested the first time. 
> 
> Technically, OpenCms implements an internal 404 handler. If a page is
> requested that is not found, this handler is triggered. The OpenCms static
> export manager then analyzes if the request was for a page that should have
> been exported, and if so, it exports the page, at the same time also writing
> it to the response stream. So if a page is requested for the first time,
> it's exported "on demand", hence the name. Cool thing is that for all
> subsequest requests, there's no 404 error since the page is now there, so
> there's not even an overhead. 
> 
> Only issue is that the Apache configuration for this is rather tricky, i.e.
> if you run Tomcat behind Apache. We have a sample mod_proxy Apache / Tomcat
> configuration, I just don't have it handy right now. If you are interested
> I'll post it next week. In the meantime, try it on a test installation
> without Apache http in front.

Oh, I see, I did not know that it is implemented thru 404 handler.
Then my problem is indeed in the fact that Apache is serving
tha pages and thus the 404 handler is not invoked.


Thanks

Martin
-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Supercomputing Center Brno             Martin Kuba
Institute of Computer Science    email: makub at ics.muni.cz
Masaryk University             http://www.ics.muni.cz/~makub/
Botanicka 68a, 60200 Brno, CZ     mobil: +420-603-533775
--------------------------------------------------------------



More information about the opencms-dev mailing list