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

Changing Webroot #86

Open
DhruvaSambrani opened this issue Nov 27, 2022 · 5 comments
Open

Changing Webroot #86

DhruvaSambrani opened this issue Nov 27, 2022 · 5 comments

Comments

@DhruvaSambrani
Copy link

I want to host my wiki at mydomain.xyz/wiki. I have set up the correct reverse proxy via caddy, but the frontend returned by wikmd does not have the correct links. How do I change the webroot?

@Linbreux
Copy link
Owner

Hi @DhruvaSambrani

Could you give a little more information, what doe you see? What are the links showing? Do you run it native or in docker?

Thanks!

@DhruvaSambrani
Copy link
Author

I see everything normally, but say I want to edit homepage, clicking the edit button takes me to mydomain.xyz/edit/homepage, but it should go to mydomain.xyz/wiki/edit/homepage. Manually putting this url takes me to the right page.

This is also called baseurl in some projects, if that helps.

Caddyfile -

mydomain.xyz {
  handle_path /wiki/* {
    reverse_proxy localhost:8080
  }
  redir /wiki /wiki/
}

@Linbreux
Copy link
Owner

Hi @DhruvaSambrani

I found a way to fix this. I'll try to do it this week! fix_webroot_#86

@DhruvaSambrani
Copy link
Author

Hi, what is the ETA on this?

@tbnguyen1407
Copy link

Hi, I am also interested in this feature for hosting behind reverse proxy.

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

3 participants