Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Jira Applications are not working on Single Domain

Ravinderpal Singh February 10, 2021

Hi, 

I have installed Jira Software Server, Jira service Desk Server  & Jira Confluence Server With Script on GCP Server. These all installed on Same server , I am much comfortable with the following structure (1) and I don't want to use the (2) one. Error msg which is receibed "https://prnt.sc/z1tclw"

(1)
jira.mydomain.com  ---->jira Software Server
jira.mydomain.com/servicedesk --- > jira Service Desk Server
jira.mydomain.com/confluence  --> jira Confluence Server 

(2)  
jira.mydomain.com/jira  ---> jira Software Server
jira.mydomain.com/servicedesk --- > jira Service Desk Server
jira.mydomain.com/confluence  --> jira Confluence Server .


My Apache Vhost :-   

<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName jira.mydomain.com
ServerAdmin webmaster@localhost
# DocumentRoot /var/www/html
########################################
ServerSignature Off
ProxyRequests Off
ProxyVia Off
ProxyPreserveHost On
<Proxy *>
Require all granted
</Proxy>

############=Jira=Software=##########################
ProxyPass / http://localhost:8100/jira
ProxyPassReverse / http://localhost:8100/jira

###########=Jira-Service-Desk=###################
# JIRA Service Desk :

ProxyPass /servicedesk http://localhost:8200/servicedesk
ProxyPassReverse /servicedesk http://localhost:8200/servicedesk
###########=Confluence-Server=###################
#Want to setup Confluence Server With this domain

ProxyPass /confluence http://localhost:8090/confluence
ProxyPassReverse /confluence http://localhost:8090/confluence


#############################################
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined


#ServerSignature Off

SSLCertificateFile /etc/letsencrypt/live/jira.mydomain.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/jira.mydomain.com/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
</IfModule>

& My Server.xml File is:- 

=======Jira-Software-Server====================
<?xml version="1.0" encoding="utf-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<Server port="8005" shutdown="SHUTDOWN">
<Listener className="org.apache.catalina.startup.VersionLoggerListener"/>
<Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on"/>
<Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener"/>
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/>
<Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener"/>

<Service name="Catalina">
<!--
==============================================================================================================
DEFAULT - Direct connector with no proxy for unproxied access to Jira.

If using a http/https proxy, comment out this connector.
==============================================================================================================
-->

<!-- Relaxing chars because of JRASERVER-67974 -->
<!--
<Connector port="8100" relaxedPathChars="[]|" relaxedQueryChars="[]|{}^&#x5c;&#x60;&quot;&lt;&gt;"
maxThreads="150" minSpareThreads="25" connectionTimeout="20000" enableLookups="false"
maxHttpHeaderSize="8192" protocol="HTTP/1.1" useBodyEncodingForURI="true" redirectPort="8443"
acceptCount="100" disableUploadTimeout="true" bindOnInit="false"/>
-->

<!--
==============================================================================================================
HTTP - Proxying Jira via Apache or Nginx over HTTP

If you're proxying traffic to Jira over HTTP, uncomment the below connector and comment out the others.
Ensure the proxyName and proxyPort are updated with the appropriate information if necessary as per the docs.

See the following for more information:

Apache - https://confluence.atlassian.com/x/4xQLM
nginx - https://confluence.atlassian.com/x/DAFmGQ
==============================================================================================================
-->

<!--
<Connector port="8100" relaxedPathChars="[]|" relaxedQueryChars="[]|{}^&#x5c;&#x60;&quot;&lt;&gt;"
maxThreads="150" minSpareThreads="25" connectionTimeout="20000" enableLookups="false"
maxHttpHeaderSize="8192" protocol="HTTP/1.1" useBodyEncodingForURI="true" redirectPort="8443"
acceptCount="100" disableUploadTimeout="true" bindOnInit="false" scheme="http"
proxyName="<subdomain>.<domain>.com" proxyPort="80"/>

-->
<!--
==============================================================================================================
HTTPS - Proxying Jira via Apache or Nginx over HTTPS

If you're proxying traffic to Jira over HTTPS, uncomment the below connector and comment out the others.
Ensure the proxyName and proxyPort are updated with the appropriate information if necessary as per the docs.

See the following for more information:

Apache - https://confluence.atlassian.com/x/PTT3MQ
nginx - https://confluence.atlassian.com/x/DAFmGQ
==============================================================================================================
-->


<Connector port="8100" relaxedPathChars="[]|" relaxedQueryChars="[]|{}^&#x5c;&#x60;&quot;&lt;&gt;"
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="abc.mydomain.com" proxyPort="443"/>


<!--
==============================================================================================================
AJP - Proxying Jira via Apache over HTTP or HTTPS

If you're proxying traffic to Jira using the AJP protocol, uncomment the following connector line
See the following for more information:

Apache - https://confluence.atlassian.com/x/QiJ9MQ
==============================================================================================================
-->

<!--
<Connector port="8009" URIEncoding="UTF-8" enableLookups="false" protocol="AJP/1.3"/>
-->

<Engine name="Catalina" defaultHost="localhost">
<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true">

<Context path="/jira" docBase="${catalina.home}/atlassian-jira" reloadable="false" useHttpOnly="true">
<Resource name="UserTransaction" auth="Container" type="javax.transaction.UserTransaction"
factory="org.objectweb.jotm.UserTransactionFactory" jotm.timeout="60"/>
<Manager pathname=""/>
<JarScanner scanManifest="false"/>
<Valve className="org.apache.catalina.valves.StuckThreadDetectionValve" threshold="120" />
</Context>

</Host>
<Valve className="org.apache.catalina.valves.AccessLogValve"
pattern="%a %{jira.request.id}r %{jira.request.username}r %t &quot;%m %U%q %H&quot; %s %b %D &quot;%{Referer}i&quot; &quot;%{User-Agent}i&quot; &quot;%{jira.request.assession.id}r&quot;"/>
</Engine>
</Service>
</Server>

1 answer

0 votes
mogavenasan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 10, 2021

Hi @Ravinderpal Singh,

Which URL is not working? All of them? Can you try adding a trailing slash as per:

ProxyPass / http://localhost:8100/jira/
ProxyPassReverse / http://localhost:8100/jira/

Additionally, can I know if you have installed Jira Software and Jira Service Desk separately?

Ravinderpal Singh February 10, 2021

Hi @mogavenasan , 
yes all link are not working  after doing below changes in apache vhost . Error "https://prnt.sc/z253rg"

ProxyPass / http://localhost:8100/jira/
ProxyPassReverse / http://localhost:8100/jira/


mogavenasan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 11, 2021

Hi @Ravinderpal Singh,

At this point, instead of doing all the configuration at once, I will recommend making it work with Jira Software first and then add the other configuration one by one. Take a step back and refer to this KB and set it up only for Jira Software.

See how it goes.

Thanks,
Moga

Ravinderpal Singh February 11, 2021

Hi @mogavenasan ,
I already read the below link, When i set /jira to  jira.mydomain.com  then after my other jira.mydomain.com/serverdesk and jira.mydomain.com/confluence server's  are not working. Only one jira Software Server is working fine. 

https://confluence.atlassian.com/kb/proxying-atlassian-server-applications-with-apache-http-server-mod_proxy_http-806032611.html 

Note:- I want to use jira server with simple domain (mean with jira.mydomain.com ) not want use like "/jira". But reset other jira application want to use like jira.mydomain.com/servicedesk & jira.mydomain.com/confluence. "

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.13.3
TAGS
AUG Leaders

Atlassian Community Events