-
Notifications
You must be signed in to change notification settings - Fork 5
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
feat req : subpath event a full domain using prefix url #146
Comments
It will add an unwanted complexity for manipulating path (which is already complex!). Most of the time, people have a reverse proxy in front of internet (for adding https, rate-limit or such things) and it allows to strip prefix. |
yes noted in the code.. puff .. but the prefix in the ROOTURL handler is not complex.. i mean in each request, we can inyect the subpath!
that is i want to do but it seems for assets is not working, because the service defined the search for all in "root /" but i reverse proxy from a "/subpath" so the best way to illustrated is the crap happened with gitea golang code go-gitea/gitea#5411 and go-gitea/gitea#5425 (comment) NOTE: gogs and gitea 1.X has a working behaviour for subpaths and defined url path.. so all the rest of webservers works and not only those craps named apache/nginx |
Indeed the PublicURL is not configured everywhere. Some paths are pointing the Edit: a |
sorry for bad english.. yes.. that's what i means.. of course this feature is not so easy to understand, checked the code and i was based in the public url handler so i'm not sure about security implications |
Closes #146 Signed-off-by: Vincent Boutour <bob@vibioh.fr>
👍 |
All resources and redirections are now under the
|
but now is happened that i xplain in the issue #152 , i mean : 1 started as |
err no no, i means, i just want to star a the commit 368580d solves some problesm with fulldomain and reverse proxy setups but NOT FOR subpaths with already working webserver for a unique domain.. if i runs |
solved here: #152 (comment) |
i check that in code all subpath are directories in the publicURL so tried for some option using
publicURL
andaddress
option and chek tha tall the assets are rquesting from root.so a new option "
--prefixurl "subpath"
" can be provided to use a prefix in all path ,by example
http://fbr.dom.fr
will becomehttp://fbr.dom.fr/subpath
and we can server subpath then!i made a dirty trick using a symlink in dataroot pointing to "." and it works, but rest of things of course not!
The text was updated successfully, but these errors were encountered: