Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How do I fix error 502 from Apache with Confluence (mod_proxy)?

I have Confluence sitting behind Apache (mod_proxy), and my httpd.conf section looks like this:

<VirtualHost *:80>
  ServerName confluence.example.com
  ProxyRequests off
  ProxyPreserveHost on
  ProxyPass / http://127.0.0.1:8000/</pre<>>
  ProxyPassReverse / http://127.0.0.1:8000/</pre<>>
</VirtualHost>

I get an HTTP Error 502 whenever I try to access confluence.example.com. Nothing shows up in the Confluence log, but the Apache log shows:

[Thu Jul 21 15:59:23 2011] [error] [client 172.16.32.100] proxy: Error reading from remote server returned by /
[Thu Jul 21 15:59:23 2011] [error] [client 172.16.32.100] (20014)Internal error: proxy: error reading status line from remote server 127.0.0.1:8000

Is there any way to fix this? I can't give Confluence a separate public IP address, and I'd prefer it to run through port 80.

The exact same configuration works for Bamboo, Crowd, Crucible, and JIRA. Also, I can access Confluence directly on port 8000, but that isn't open externally, only over the LAN, and Confluence needs to be accessable over the Internet.

2 answers

1 accepted

0 votes
Answer accepted

Well, by the advice from Atlassian Support, I've fixed the issue (somewhat) by switching to mod_proxy_ajp, and changing the protocol to AJP/1.3 in the server.xml file.

Did you check the tomcat logs (stdout and stderr)? This sounds like the proxy parameters are missing in the server.xml

Yes, there's literally nothing in the logs, sadly. I tried both with the proxy parameters in server.xml and without, and neither works. Although I've read that I don't need them, as I'm using ProxyPreserveHost, it doesn't work either way, sadly.

Suggest an answer

Log in or Sign up to
This widget could not be displayed.
TAGS
Community showcase
Published in Confluence

Confluence Mythbusters: Does Atlassian even use Confluence?

Hi, Confluence collaborators! As part of #Confluence-Collaboratory month, we’ve created a very special Mythsbusters segment, where we're dive into an interesting myth and uncover the truth behind i...

280 views 4 14
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you