• 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

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 vote

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)

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

No, you added them after I posted the answer.

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

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?

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

910 views 23 12
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