If I append a base path to the approot property in settings.yml like
approot=”http://localhost:3000/base”
calling this URL in the browser shows “Not Found” as message, instead of giving properly the Home page.
I could not find any way to solve it.
…
I see, I have to Rewrite the URL without the base prefix before submitting it to the yesod task, and the approot is only used to be prepended to all page links.
Is there a proper way to handle theese non-empty path based URL’s ?
There are two relatively simple approaches to this:
In general, an approot with a leading path piece is most useful where there’s some front server which is calling out to your Yesod app (either via reverse proxy or FastCGI).