Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hosting behing nginx #13

Closed
aateeque opened this issue May 27, 2020 · 2 comments
Closed

Hosting behing nginx #13

aateeque opened this issue May 27, 2020 · 2 comments

Comments

@aateeque
Copy link

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
Copy link
Member

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
Copy link
Author

Not sure how i missed that - thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants