Confluence via AJP and SSL - no scheme SSL in Server Connector needed?

regarding Configuring Apache Reverse Proxy Using the AJP Protocol I'm wondering that there is no hint that the AJP connector might need a 



proxyName="" proxyPort="443"

as like it is needed using mod_proxy to ensure correct URL handling:


Can someone point out, why this is the case/requirement for Apache mod_proxy but not for AJP?

2 answers

1 accepted

0 votes
Accepted answer

When using mod_proxy the request looks to Confluence like a browser request. Therefore you have to tell Confluence (or to be more precisely Confluence' Tomcat server) that a proxy is used and the Scheme is https, so the server can build a valid link instead of redirecting to it's own address.

AJP is different. AJP is a binary protocol, which includes different states about the request but does look not like a http request to the server.  The server is aware that this is a proxified request. Inside the AJP message everything is already prepared, in other words the server will know from where the request comes:

    prefix_code      (byte) 0x02 = JK_AJP13_FORWARD_REQUEST
    method           (byte)
    protocol         (string)
    req_uri          (string)
    remote_addr      (string)
    remote_host      (string)
    server_name      (string)
    server_port      (integer)
    is_ssl           (boolean)
    num_headers      (integer)
    request_headers *(req_header_name req_header_value)
    attributes      *(attribut_name attribute_value)
    request_terminator (byte) OxFF

The long name is by the way Apache JServ Protocol. 

because internal ajp connection is still unencrypted? while mod_proxy makes internal calls to an HTTPS server?

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Monday in Confluence

Organizing your space just got easier - Page Tree Drag & Drop is here

Hi Community! I’m Elaine, Confluence Product Manager. You may have read my earlier post about page tree in space navigation sidebar. I'm excited to share another improvement that helps you organize ...

62 views 3 2
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you