Hi,
Ive been trying to setup reverse proxy with SSL and whenever I navigate to jira.mydomain.com I receive the error below. Also I have tried all of the solutions proposed by other posts but yet again it didn't work.
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request
Reason: DNS lookup failure for: localhost:8080secure
Apache/2.4.29 (Ubuntu) Server at jira.mydomain.com Port 443
P.S. The SSL is working
Virtual Host Config (jira.mydomain.com.conf ):
<VirtualHost *:443 >
ServerName jira.domain.com
ProxyRequests Off
<Proxy *>
Require all granted
</Proxy>
ProxyPass / http://localhost:8080 connectiontimeout=5 timeout=30
ProxyPassReverse / http://localhost:8080
SSLCertificateFile fullchain.pem
SSLCertificateKeyFile privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
<VirtualHost *:80>
ServerName jira.domain.com
Redirect Permanent / https://jira.domain.com
RewriteEngine on
RewriteCond %{SERVER_NAME} =jira.domain.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
Also my server.xml config
<Connector port="8080" 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" proxyName="jira.domain.com" proxyPort="443" scheme="https" secure="true" />
<Connector port="8009" URIEncoding="UTF-8" enableLookups="false" protocol="AJP/1.3"/>
So I just figured out how to fix it:
for the ProxyPass & ProxyPassReverse
ADD A "/" after the URL so instead of
ProxyPass / http://localhost:8080
ProxyPassReverse / http://localhost:8080
the correct way to do it is by including the "/" at the end!
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/
Did you modify the /etc/hosts file of the proxy server or another server? What modification with you made?
THANKS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
oh and for the localhost, I have also tried to type 127.0.0.1 instead and also my jira.domain.com was also added to /etc/hosts
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For a little over a year, 2 of our Unix virtual servers have stopped without anyone knowing why.
These S1 and S2 servers serve respectively as a proxy server and servers on which Altassian applications are installed
(Jira, Confluence and Bitbucket).
When the problem occurs, we cannot join these 2 servers in SSH (impossible to have the prompt which asks to enter its identifier).
On a web browser, when we try to access one of the Atlassian applications, we get a blank page with an error message:
---------------------------------------------------------------------------------
Proxy 502 Error
Proxy Error The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /A1/jira/secure/Dashboard.jspa.
Reason: DNS lookup failure for: full.name.server
---------------------------------------------------------------------------------
NB: full.name.server being an example. What is actually displayed is the full name of the server
Did you also have this problem?
Can you help me solve it please?
THANKS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.