-
Notifications
You must be signed in to change notification settings - Fork 225
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
Proposal: Adjusting Server.xml With Envs #12
Comments
did i create a dupe for this ? #27 seems like you are aiming for the exact same thing here, right? |
@blacklabelops just tried that, and yes, you are forced to have several connectors when you deal with the case of service-desk / jira having different domains. If you dont, jira-servicedesk will through an json error .. but it seems far more complicated then we thought yet: https://confluence.atlassian.com/jirakb/how-to-customize-customer-portal-url-in-jira-service-desk-server-847755218.html |
That article means that due to Tomcat 8.0 you will have to use rewrite rules rather than multiple connectors in order to support multiple domains or subdomains. |
I am not really sure if a redirect is the thing you want. If I understand the article correctly you will be send for example from support.domain.com to jira.domain.com. Didn't you want to serve all requests and responses under support.domain.com? A simple redirect can be realized with simpler means than redirect rules inside Tomcat. |
That's what I just did 1hour ago, anything else is just not worth the effort. Seeing the effort needed, i would not expect you to do anything for multi domain support.. way too complex |
So in the end what do you need? You can simply use a nginx or haproxy for redirection rules and URL rewriting. No need to configure Tomcat. |
Of course, I even used a cloudflare based redirect, no need to introduce nginx into this stack for now |
Example for multi-domain-connector approach:
Can anybody confirm that this Jira instance would serve requests and response with both domains? |
Reverse proxy example with nginx:
|
Tested it locally and it works:
|
Update: Does not really work. Jira notifies a configuration error when accessing the url that is not registered as the base url. Also when you press the Jira logo your always redirected to the base url. I am assuming that there are more issues and Jira is not able to run under multiple base urls. So the multi-domain multi-connector feature is off the table! |
seconding this, i ditched it on my side. It works limited to service-desk but its far not worth the effort on not well supported my atlassian either way |
I'll ditch this. |
You can vote for this feature. Do you need this?
Adjusting the server.xml connector attributes with envs.
Example:
The text was updated successfully, but these errors were encountered: