I am trying to set up our Jira so that it can be accessed from two domains.
While I know that this is not officially supported by Atlassian, I am sure that there is a server config that allows it.
So far I am able to access the pages themselves successfully from domainA and domainB, but for domainB I get a 403 forbidden error for resources like images.
My current configuration is as follows:
.conf file:
<VirtualHost *:443>
ServerName domainA.com
ServerAlias domainB.com
...
server.xml:
<Connector port="8101" relaxedPathChars="[]|" relaxedQueryChars="[]|{}^\`"<>"
maxThreads="150" minSpareThreads="25" connectionTimeout="20000" enableLookups="false"
maxHttpHeaderSize="8192" protocol="HTTP/1.1" useBodyEncodingForURI="true" redirectPort="8443"
acceptCount="100" disableUploadTimeout="true" bindOnInit="false" secure="true" scheme="https"
proxyName="domainA.com" proxyPort="443"/>
If I change the proxyName of the Connector to domainB.com it works for domainB but no longer for domainA.
I have tried to set up an additional second Connector for another port as follows for domainB, but without success:
<Connector port="8102" relaxedPathChars="[]|" relaxedQueryChars="[]|{}^\`"<>"
maxThreads="150" minSpareThreads="25" connectionTimeout="20000" enableLookups="false"
maxHttpHeaderSize="8192" protocol="HTTP/1.1" useBodyEncodingForURI="true" redirectPort="8443"
acceptCount="100" disableUploadTimeout="true" bindOnInit="false" secure="true" scheme="https"
proxyName="domainB.com" proxyPort="443"/>
The behaviour seems to be independent of the base URL set in the Jira.
Also I am able to access Jira just fine from an internal IP via http with the following additional connector:
<Connector port="8301" relaxedPathChars="[]|" relaxedQueryChars="[]|{}^\`"<>"
maxThreads="150" minSpareThreads="25" connectionTimeout="20000" enableLookups="false"
maxHttpHeaderSize="8192" protocol="HTTP/1.1" useBodyEncodingForURI="true" redirectPort="8443"
acceptCount="100" disableUploadTimeout="true" bindOnInit="false" URIEncoding="UTF-8" />
Any ideas how to solve this?
Thank you.