From: Steve V. <vi...@ie...> - 2012-08-31 04:37:09
|
The "opaque" tuple you show below for your SL is just right. I don't think you need the xtra_docroots setting for vdirs. But you also need to tell the yaws_vdir module to process those opaque vdir settings by including {arg_rewrite_mod, yaws_vdir} in your SL too. --steve On Thu, Aug 30, 2012 at 7:04 PM, Stu Bailey <stu...@gm...> wrote: > Thanks for the suggestion. Doing that I tried passing both > > {xtra_docroots,["/my/other/yaws_root"]} > > and > > {opaque,[{"vdir","/other/ /my/other/yaws_dir"}]} > > > to yaws:start_embedded via GL (and SL) with no progress > > Thoughts? > Stu > > On Thu, Aug 30, 2012 at 3:20 PM, Steve Vinoski <vi...@ie...> wrote: >> On Thu, Aug 30, 2012 at 6:08 PM, Stu Bailey <stu...@gm...> wrote: >>> Is there a GL/SL tuple which defines virtual directories for yaws in >>> an embedded mode? I looked at the code and could not figure out how >>> to add virtual directories when using yaws:start_embedded(...). >> >> Hi Stu, you might first try getting it working with a yaws.conf file, >> and then while that's running you can execute: >> >> yaws --running-config >> >> to dump your configuration and hopefully see it in the Erlang form you >> need for embedded mode. >> >> --steve |