Wyamio / Wyam

A modular static content and static site generator.
MIT License
141 stars 29 forks source link

Hosting behing nginx #13

Closed aateeque closed 4 years ago

aateeque commented 4 years ago

I'd like to serve a Wyam site behind an nginx URL like: http://mdomain.com/app/index.html

When I use the docs recipe and do a wyam publish the relative paths to the resources (css, images, js) is all rooted (like /assets/..). How can I prepend "app" to these paths?

daveaglick commented 4 years ago

See https://wyam.io/docs/deployment/serving-from-a-subdirectory - I think that's what you want. It'll generate links using the sub-path:

Settings[Keys.LinkRoot] = "/app";

You'll also need to instruct the preview server to do the same when running it from the command-line - instructions for that are also in the doc.

aateeque commented 4 years ago

Not sure how i missed that - thanks