URLs revisited (was Re: [daisy] daisy-1.3 release date?)

Bruno Dumon bruno at outerthought.org
Fri Aug 26 08:07:25 CDT 2005


I have not ever looked into these apache rewrite rules, but if it can
help I know the daisy on cocoondev.org has a modified root sitemap.xmap,
which directly mounts daisy:

<map:mount check-reload="yes" src="daisy/" uri-prefix=""/>

thus the content of the default map:pipeline is replaced with just this
(and the default map:handle-errors).

I don't know if this is actually needed, but it is there.

On Fri, 2005-08-26 at 12:38 +0100, Andrew Savory wrote:
> Hi,
> 
> On 17 Aug 2005, at 10:42, Steven Noels wrote:
> 
> > On 17 Aug 2005, at 11:39, Andrew Savory wrote:
> >
> >
> >> I wanted to see if it's possible to fix the automatic  
> >> determination, both for this but also for occasions where a Daisy  
> >> site is behind a virtual host and set up to eliminate /daisy/ 
> >> [site]/ from the URL. The extensive rewrite rules on http:// 
> >> cocoondev.org/daisydocs-1_3/admin/99.html seem like hard work ;-)
> >>
> >
> > I'm slimming them down as we speak, actually. ;)
> 
> I'm still trying to find the best way to serve a Daisy-hosted site at  
> a tidy URL. Sorry to keep on about this ;-)
> 
> The new, slimmer instructions on the above page still don't seem to  
> be correct (though it could be my interpretation of them).
> 
>      RewriteRule "^/(.*)" "http://localhost:8080/$1" [P]
> 
> ... you don't explain this, and I'm not too sure what the point of it  
> is - why would we want people to see the Cocoon welcome page?
> 
> ... also, maybe these examples would be better as localhost:8888, as  
> in a typical Daisy instance? (I know you have 8080 because it's your  
> server's configuration, but something that anyone running Daisy can  
> copy-and-paste might be of more general use?)
> 
>      RewriteRule "^/$" http://localhost:8080/main/ [P]
> 
> ... you say "This way, if someone hits the root of the website, he  
> will be automatically forwarded to the homepage of the 'main' Daisy  
> site (http://host/main/). The other sites are still available, by  
> simply accessing http://host/otherdaisysite/. Also, the  
> administration screens are accessible using http://host/admin/." -  
> but on a default install of Daisy 1.3-M3, this does not happen. Have  
> you modified the Daisy sitemap in order to make this work?
> 
> See for example Olivier's suggested approaches at http:// 
> lists.cocoondev.org/pipermail/daisy/2005-August/001842.html, which  
> works with the RewriteRules you suggest, but still means the  
> website's root page is Cocoon. I'd really like to get to the point  
> where a Daisy site can be mounted at http://my.fancy.url/ rather than  
> http://my.fancy.url/sitename/, which I'd have thought was a fairly  
> common requirement, but it causes all sorts of problems with things  
> like the login links.
> 
> Am I just totally odd, or is anyone else trying to do this?
> 
> 
> Andrew.
> 
> --
> Andrew Savory, Managing Director, Luminas Limited
> Tel: +44 (0)870 741 6658  Fax: +44 (0)700 598 1135
> Web: http://www.luminas.co.uk/
> Orixo alliance: http://www.orixo.com/

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno at outerthought.org                          bruno at apache.org



More information about the daisy mailing list