Forums

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

Need Assistance on Apache Reverse Proxy on CentOS

Ian McCormick July 4, 2019

I know I have seen and followed a dozen posts about this, but still cannot get the proper connectivity. I am running:

  • CentOS 7
  • PostGRE
  • Apache httpd (mod_Proxy)
  • DNS Setup through External A Record on host

I cannot get my Page to show up at the proper URL (devtools.metafra.me/jira) from the standard devtools.metafra.me:8080

Here are the current Configurations. Any assistance would be appreciated.

Apache File - 000_jira.conf
<VirtualHost *:80>
ServerName devtools.metafra.me
ProxyRequests Off
ProxyVia Off

<Proxy *>
Require all granted
</Proxy>

ProxyPass /jira http://localhost:8080/jira/
ProxyPassReverse /jira http://localhost:8080/jira/

</VirtualHost>
JIRA Server xml - /opt-atlassian/jira/conf/server.xml 
<Connector port="8080"
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="devtools.metafra.me" proxyPort="80"/>
<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>

 I am able to see the apache placeholder on the main URL

For some reason, the Configuration URL is wonky now too (Seeing Tomcat errors in the BG)

2 answers

1 accepted

0 votes
Answer accepted
Nic Brough -Adaptavist-
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.
July 14, 2019

I think there are some minor problems with your /s in the settings.

First, In the proxy settings file for apache, you should make the ending of urls consistent in the proxy pair.  So

ProxyPass /jira http://localhost:8080/jira/

should be

ProxyPass /jira/ http://localhost:8080/jira/

or

ProxyPass /jira http://localhost:8080/jira

The other, probably more important one, is that you've put in a context path of /jira in the server.xml - try just jira without any slashes (it doesn't need to match the proxy)

Ian McCormick July 16, 2019

Yep :)

That is what it was. 

0 votes
Ian McCormick July 4, 2019

It also seems that I have a 503 error

Suggest an answer

Log in or Sign up to answer