Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

502 proxy error with reverse proxy using apache



I did everything in this article to try to enable SSL in my jira server installation:


I want the jira to be accessible with URL, so apache configuration looks like:


<VirtualHost *:80>
Redirect Permanent /

<VirtualHost *:443>
ProxyRequests Off
ProxyVia Off

<Proxy *>
Require all granted

SSLProxyEngine on
<Location />

SSLEngine ON
SSLCertificateFile mysslpath/cert.pem
SSLCertificateKeyFile mtsslpath/privkey.pem
SSLCertificateChainFile mysslpat/chain.pem


In server.xml I commented the default connector and uncommented the HTTPS proxy connector, so it looks like:

<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" secure="true" scheme="https"
proxyName="" proxyPort="443"/>


I restarted htttp and jira services, but when I try to access, I got the following error with 502 HTTP code.

Proxy Error

The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /.

Reason: Error reading from remote server


If I access jira opens as usual, with some login/sesison issues (users are logged out immediatly after logging in).

What am I doing wrong?

1 answer

1 accepted

0 votes
Answer accepted

I double checked my apache configuration and it is working now.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

Online AMA this week: Your project management questions answered by Jira Design Lead James Rotanson

We know that great teams require amazing project management chops. It's no surprise that great teams who use Jira have strong project managers, effective workflows, and secrets that bring planning ...

164 views 1 6
Read article

Atlassian Community Events