[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MirageOS-devel] Problem with `mirage run`on unix build of static_website



On 26 Feb 2014, at 10:12, Amir Chaudhry <amc79@xxxxxxxxx> wrote:

> Helpful info, thanks!
> 
> There's a file called dispatch.ml and it looks like the piece I need is in 
> there [1].  However, I'm not sure how to edit it to get what I want.  I'm 
> guessing it involves adding some more code to try different locations for the 
> content before raising the exception (see lines 39 40 at link below).
> 
> [1] 
> https://github.com/mirage/mirage-skeleton/blob/master/static_website/dispatch.ml#L32

yup, that's it. (i should really pull this kind of thing into cowabloga as it's 
fairly standard behaviour if it's not already there. proposal rebuttals and 
other documents to write in the next day or two, but i'll try and do that later 
this week.)

look at line 34 -- what i'd do is check the list "segments" and if the last 
element is "index.html", drop it before doing the String.concat to create the 
path that's tried...

-- 
Cheers,

R.




This message and any attachment are intended solely for the addressee and may 
contain confidential information. If you have received this message in error, 
please send it back to me, and immediately delete it.   Please do not use, copy 
or disclose the information contained in this message or in any attachment.  
Any views or opinions expressed by the author of this email do not necessarily 
reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system, you 
are advised to perform your own checks. Email communications with the 
University of Nottingham may be monitored as permitted by UK legislation.





_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@xxxxxxxxxxxxxxxxxxxx
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.