Seraph originalURL different from confluence baseurl

We are using a CAS-Server for SSO

So I have a seraph-Config like

<init-param>

<param-name> login.url</param-name>

<param-value> https://<cas-server-name>:9443/cas-server-webapp-3.4.2/login?service=${originalurl}</param-value>

</init-param>

<init-param>

<param-name> link.login.url</param-name>

<param-value> https://<cas-server-name>:9443/cas-server-webapp-3.4.2/login?service=${originalurl}</param-value>

</init-param>

And here is my problem, cause it uses always localhost:8080/... as originalurl-value.

On the Confluence-side we are using a Apache webserver connect via modproxy to the tomcat like

ProxyPass / http://localhost:8080/

ProxyPassReverse / http://localhost:8080/

And that's the only point in my whole configration where I've set localhost:8080 and in tomcat's server.xml localhost is the defaultHost.

What I need and what I had expected is that seraph uses the baseurl configured in confluence instead.

Here an example what I've now:

https://myCasServer/cas/login?service=https://localhost:8080/homepage.action

and what I need:

https://myCasServer/cas/login?service=https://myBaseUrl/homepage.action

How can I quick solve my problem?

Regards Steve

1 answer

1 accepted

We are succesfully using CAS with JIRA and Confluence. You are probably missing following lines in apache configuration:

ProxyRequests       Off
  ProxyPreserveHost   On

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

1,716 views 25 10
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