Hi,

I'm revisiting a very old Mason site (still running 1.05, I'm
upgrading it to the latest Mason) and I stumbled on something about
serving index.html files and multiple component roots.

This sites uses a "common" and "channel" component setup. Its the same
basic site, shared with different output channels. Each channel has
its on component root and it appears first in the list of component
roots, so that each site can override the common one.

The Apache document root points to the channel document root, and the
Apache configuration uses a DocumentIndex directive to set the
index.html file as the one to get on directory URLs.

But if I move all index.html components to the common component root
(outside the Apache document root), the /dir/ => /dir/index.html
internal rewrite will not happen, because there is no /dir/ nor
/dir/index.html in the Apache document root.

The question is: do you have a similar setup that is working? If so how?

I searched the docs and I found about decline_dirs setting that might
help me but it seems that I would need to create a dhandler for each
directory where I have an index.html file.

Looking at the code it seems that Mason doesn't deal with this
situation at all. Maybe moving the Apache "DirectoryIndex" setting to
Mason would make some sense, given that right now it doesn't seem to
be able to deal with multiple component roots? If so, would you accept
a patch for it?

Thanks in advance,
-- 
Pedro Melo
http://www.simplicidade.org/
xmpp:m...@simplicidade.org
mailto:m...@simplicidade.org

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to