Hi Andreas, in my yaws.conf I have the appmods = <"/blog", erlyweb> set to appmods = <"/", erlyweb>, that is why /blog/ in the urls dont work for you.
The blog application is made by a erlyweb-beginner, so please dont trust the code in any way. :) I´ll add a note about this now on code.google and update the blog application within the next days and if the advanced users have reviewed it and think its ok I can change the note. On 6 Jan., 03:31, Andreas <[EMAIL PROTECTED]> wrote: > I have build the blog based on the tutorial and downloaded the the > blog from google. > Both have the problem, that links on the homepagehttp://127.0.0.1:8000/blog/ > have bad URLs:http://127.0.0.1:8000/entry/view/my-cat-is-ill > SHOULD BE:http://127.0.0.1:8000/blog/entry/view/my-cat-is-ill > > I use ErlyWeb 0.7 and YAWS 1.74. > > yaws.conf: -------------------------------------- > .. > <server localhost> > port = 8000 > listen = 127.0.0.1 > docroot = "C:/Dokumente und Einstellungen/HeiAn/workspace/blog/www" > appmods = <"/blog", erlyweb> > <opaque> > appname = blog > </opaque> > </server> > > -module(blog_app_controller). > -export([hook/1]). > ------------------------------------------------------ > > blog_app_controller.erl -------------------- > hook(A) -> > A1=case yaws_arg:appmoddata(A) of > Root when (Root =:= "") orelse (Root =:= "/") -> > yaws_arg:appmoddata(A, "/entry"); > _ -> > A > end, > Ewc = erlyweb:get_initial_ewc({ewc, A1}), > case Ewc of > {data,_}=Data -> > Data; > _ -> > {phased, Ewc, > fun(_Ewc, Data,_PhasedVars) -> > {ewc, html_container, [A1, {data, Data}]} > end} > end. > ---------------------------------------------------------- > > How can I sove the problem? > > thanks > Andreas --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "erlyweb" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en -~----------~----~----~----~------~----~------~--~---
