You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running WriteFreely behind a reverse proxy, I configured the proxy to only for the /blog subfolder on my domain. I added https://example.com/blog to config.ini as host, but it still assumes that I am running it on the root. For example, when I make it password protected it redirects me to example.com/login instead of example.com/blog/login upon visiting the home page.
Steps to reproduce (if necessary)
Steps to reproduce the behavior:
Run WriteFreely
Configure your reverse proxy server to only run on a folder of the domain. I am using Caddy, so my config looks like:
I will try and implement this. I think the easiest way to do this would be to capture the bind and update the PathPrefix for the static routes and the main handlers.
Describe the bug
When running WriteFreely behind a reverse proxy, I configured the proxy to only for the
/blog
subfolder on my domain. I addedhttps://example.com/blog
toconfig.ini
ashost
, but it still assumes that I am running it on the root. For example, when I make it password protected it redirects me toexample.com/login
instead ofexample.com/blog/login
upon visiting the home page.Steps to reproduce (if necessary)
Steps to reproduce the behavior:
Expected behavior
The application should use the entire
host
string to generate its URLs instead of just the host.Application configuration
Version or last commit:
0.13.2
The text was updated successfully, but these errors were encountered: