My Jira installation is available using different adresses: IP address and domain (with and without www).
I want Jira accessible only with www; others accesses would redirect to the main access.
In fact, I would need some equivalent to Apache's RewriteRule but I don't know Tomcat good enough to figure out by myself.
Agree with Nic, url rewriting is probably best done in apache, but I don't see why you can't use the tuckey filter.
Modify web-inf/urlrewrite.xml - docs here: http://urlrewritefilter.googlecode.com/svn/trunk/src/doc/manual/3.2/index.html
This example is more or less what you want, just change the host instead of the scheme: http://stackoverflow.com/questions/3385034/urlrewritefilter-direct-to-https/3385100#3385100</p<>>
Add the following filter rule to atlassian-jira\WEB-INF\urlrewrite.xml.
This should be the top rule, processed before any other.
<!-- added to force url to jira.abcdef.local, avoids url issues jsb 20101130 --> <rule> <name>Domain Name Check</name> <condition name="host" operator="notequal">jira.abcdef.local</condition> <from>^(.*)$</from> <to type="redirect">http://jira.abcdef.local$1</to> </rule>
I assume you are in the same environment as I, and that you are running your Atlassian instances in windows as a service.
In your Confluence isntance try this:
<confluence install home>\confluence\WEB-INF\web.xml
Make sure that your filter mapping is applied that is in the tuckey.org/urlrewrite manual;
<filter-mapping> <filter-name>UrlRewriteFilter</filter-name> <url-pattern>/*</url-pattern> <dispatcher>REQUEST</dispatcher> <dispatcher>FORWARD</dispatcher> </filter-mapping>
This was missing in my web.xml. I applied it just under the first <filter-mapping> element for URLRewriteFilter.
The solution that Jim Burch provided worked for me and my resident Web guru verified the syntax. And since it worked for your JIRA and Stash instances, I figure that had to be missing in your confluence instance. Please let us know if it works.
Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot