-
Notifications
You must be signed in to change notification settings - Fork 738
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
KB custom URL does not work #2627
Comments
If you're lucky to have nginx compiled with sub_filter (it's that way in docker)
This has the advantage of removing en-us as well. I don't need it for a single language KB. |
So I finally was able to roll this one up again. Especially the subdomain examples ensure to not have a /help being displayed, as I personally think that'd be doubled and looks ugly. So - the following suggestions are working without changes and thus shall stay the same: Apache subdirectory
nginx subdirectory
required changes@mantas please have a look at the following directives and add them to the knowledge base suggestion for code: Apache subdomain
nginx subdomain
Alternative (apache subdirectory)The following configuration style does work as well, if you want to. This is just a hint in case some one would prefer proxying over rewriting for apache subdirectories:
Note that the above is not officially supported by Zammad and might change in behaviour as we do not test for this use case. |
@MrGeneration There's a third theoretical case that it may be custom (sub)domain + path. E.g. zammad sits at support.example.org, but KB is at another.example.org/kb |
Yes, Good hint about the third use case. Shall I have a look on rules for that as well? I mean, is that a use case the code currently supports and can differ? If so I'll do my homework! :D |
Yes, existing code does (or should?) support it. Current server config snippet look like this to account for that: At first sight, your example seem to have hardcoded value that works only if no path was entered. Current implementation takes custom path into account following way: Apache
https://github.com/zammad/zammad/blob/develop/lib/knowledge_base/server_snippet_apache.rb Nginx https://github.com/zammad/zammad/blob/develop/lib/knowledge_base/server_snippet_nginx.rb |
I've had another look onto the combination of custom FQDN together with a subfolder structure. So I'm not sure if the code can really carry this. Expecting to use "domain.tld" with subdirectory /support. Apache2
It didn't seem to work with nginx. |
Hey guys! How is this issue coming along? We're planing a new release of Zammad and this one is assigned to the next release (for quite a while). |
Nothing new to add from my end, my last |
I double checked above constellations and have taken the following use cases in consideration (and verified them to be working):
As of today I can no longer reproduce this on my test environments. I'll therefor close this issue. |
Infos:
expected behavior
actual behavior
Both rewrite rule types provided, will hardly redirect the Browser to another URL which fails, rails will not find that redirected URLs for.. reasons.
Solution:
Sub-Directory
Easiest solution for subfolders is to use a proxy (tested):
Apache
nginx
nginx is currently untested (as of 26th June 2pm)
The above samples always need to live above the location / Proxypass
/
- otherwise it won't work (/
will snack it away).Subdomain
Easiest solution for subfolders is to use a proxy (tested):
Apache
If you (why ever you wanna do that) want to use a HTTP vHost, you need to disable security stuff, not recommendet:
nginx
nginx is currently untested (as of 26th June 2pm)
The text was updated successfully, but these errors were encountered: