Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
  • Community
  • Products
  • Confluence
  • Questions
  • i have the corporate web server on one machine and confluence on another, how do i link the confluence so when i go to the main site http://example.com/wiki it displays the confluence login on the other machine

i have the corporate web server on one machine and confluence on another, how do i link the confluence so when i go to the main site http://example.com/wiki it displays the confluence login on the other machine

SystemsA August 5, 2015

i have the corporate web server on one machine and confluence on another, how do i link the confluence so when i go to the main site http://example.com/wiki it displays the confluence login on the other machine and the end user is never aware of the existance of a separate machine from browsing?

 

on the confluence machine under apache i'm using proxypass as follows:

        ProxyRequests Off

        ProxyPass / http://wiki.example.com:8090/
        ProxyPassReverse / http://wiki.example.com:8090/
        ProxyPreserveHost On
        SetEnv force-proxy-request-1.0 1
        SetEnv proxy-nokeepalive 1

and that works fine for browsing on the confluence machine.

 

on the corp web server apache config i have:

 

        ProxyRequests Off
        ProxyPass /wiki/ http://wiki.example.com/
        ProxyPassReverse /wiki/ http://wiki.example.com/
        ProxyPreserveHost On
        SetEnv force-proxy-request-1.0 1
        SetEnv proxy-nokeepalive 1

and this does not work, i get a very strange url returned when i try to browse to http;//example.com/wiki/

 

http://example.com/login.action?os_destination=%2Findex.action&permissionViolation=true

 

and /wiki/ has been removed...

1 answer

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 5, 2015

The corporate server should be set up to proxy the connection to Confluence.

This is a very common thing to do, and the standard docs are for Apache - see https://confluence.atlassian.com/display/DOC/Running+Confluence+behind+Apache  (They're easy to translate to most other web servers, with the exception of IIS which is a bit more painful because it's not a great system, but still possible)

SystemsA August 5, 2015

hi nic, did you see my additional comments? i did try following the document you referenced.

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 5, 2015

No, you added them after I posted the answer.

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 5, 2015

But, comparing this with one I've got working here, a couple of points: Your corporate server is missing the port number - you really do want to proxy directly to the confluence system, not via another proxy. You're missing the ProxyHTMLURLMap required when you're not proxying the same paths

SystemsA August 5, 2015

ah, ok so remove the proxy on the confluence server, and direct the proxy on the corporate server to the port on the confluence server like i did in the confluence config.. what do i need on the proxyhtmlurlmap command?

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 5, 2015

I'm not exactly sure, as I haven't worked out your exact config from the question. Have a look in the example configurations (and explanations) of the Apache settings under the link I gave earlier

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events