Re: Consolidate multiple <Location>s

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sorry the output was not clean. Trying a different format
  1. ProxyPass /confluencenode1 http://nodecnf001:8092/confluencenode1
  2. ProxyPassReverse /confluencenode1 http://nodecnf001:8092/confluencenode1
  3. ProxyPass /confluencenode2 http://nodecnf002:8092/confluencenode2
  4. ProxyPassReverse /confluencenode2 http://nodecnf002:8092/confluencenode2
  5. ProxyPass /confluencenode3 http://nodecnf003:8092/confluencenode3
  6. ProxyPassReverse /confluencenode3 http://nodecnf003:8092/confluencenode3
  7. <Location /confluencenode1>
  8. # Paths to bypass SSO
  9. #<If "%{REQUEST_URI} =~ m#^/confluence\/rest\/#">
  10. # Satisfy Any
  11. #</If>
  12. <If "%{REQUEST_URI} =~ m#^/(confluencenode1/rest/|confluencenode1/s/).*#">
  13. Satisfy Any
  14. </If>
  15. Order allow,deny
  16. Allow from all
  17. AuthType Shibboleth
  18. Header set X-Forwarded-Proto "https"
  19. ShibUseHeaders On
  20. ShibRequestSetting requireSession true
  21. <RequireAny>
  22. Require shib-attr AuthType "standard, x509, securePlus2, securePlus3, piv"
  23. Require shib-attr AppAuth true
  24. </RequireAny>
  25. </Location>
  26. <Location /confluencenode2>
  27. # Paths to bypass SSO
  28. #<If "%{REQUEST_URI} =~ m#^/confluence\/rest\/#">
  29. # Satisfy Any
  30. #</If>
  31. <If "%{REQUEST_URI} =~ m#^/(confluencenode2/rest/|confluencenode2/s/).*#">
  32. Satisfy Any
  33. </If>
  34. Order allow,deny
  35. Allow from all
  36. AuthType Shibboleth
  37. Header set X-Forwarded-Proto "https"
  38. ShibUseHeaders On
  39. ShibRequestSetting requireSession true
  40. <RequireAny>
  41. Require shib-attr AuthType "standard, x509, securePlus2, securePlus3, piv"
  42. Require shib-attr AppAuth true
  43. </RequireAny>
  44. </Location>
  45. <Location /confluencenode3>
  46. # Paths to bypass SSO
  47. #<If "%{REQUEST_URI} =~ m#^/confluence\/rest\/#">
  48. # Satisfy Any
  49. #</If>
  50. <If "%{REQUEST_URI} =~ m#^/(confluencenode3/rest/|confluencenode3/s/).*#">
  51. Satisfy Any
  52. </If>
  53. Order allow,deny
  54. Allow from all
  55. AuthType Shibboleth
  56. Header set X-Forwarded-Proto "https"
  57. ShibUseHeaders On
  58. ShibRequestSetting requireSession true
  59. <RequireAny>
  60. Require shib-attr AuthType "standard, x509, securePlus2, securePlus3, piv"
  61. Require shib-attr AppAuth true
  62. </RequireAny>
  63. </Location>

So I like to see if I can get only one Location stanza with only one REQUEST_URI and maybe one ProxyPass and one ProxyPassReverse for all three nodes

On Tue, May 18, 2021 at 2:29 PM <vadud3@xxxxxxxxx> wrote:
Hi All,

I have this config and it works fine. Looking for a way to consolidate it. I tried few things and no success yet.

ProxyPass /confluencenode1 http://nodecnf001:8092/confluencenode1
ProxyPassReverse /confluencenode1 http://nodecnf001:8092/confluencenode1
ProxyPass /confluencenode2 http://nodecnf002:8092/confluencenode2
ProxyPassReverse /confluencenode2 http://nodecnf002:8092/confluencenode2
ProxyPass /confluencenode3 http://nodecnf003:8092/confluencenode3
ProxyPassReverse /confluencenode3 http://nodecnf003:8092/confluencenode3
<Location /confluencenode1>
# Paths to bypass SSO
#<If "%{REQUEST_URI} =~ m#^/confluence\/rest\/#">
# Satisfy Any
#</If>
<If "%{REQUEST_URI} =~ m#^/(confluencenode1/rest/|confluencenode1/s/).*#">
Satisfy Any
</If>
Order allow,deny
Allow from all
AuthType Shibboleth
Header set X-Forwarded-Proto "https"
ShibUseHeaders On
ShibRequestSetting requireSession true
<RequireAny>
Require shib-attr AuthType "standard, x509, securePlus2, securePlus3, piv"
Require shib-attr AppAuth true
</RequireAny>
</Location>
<Location /confluencenode2>
# Paths to bypass SSO
#<If "%{REQUEST_URI} =~ m#^/confluence\/rest\/#">
# Satisfy Any
#</If>
<If "%{REQUEST_URI} =~ m#^/(confluencenode2/rest/|confluencenode2/s/).*#">
Satisfy Any
</If>
Order allow,deny
Allow from all
AuthType Shibboleth
Header set X-Forwarded-Proto "https"
ShibUseHeaders On
ShibRequestSetting requireSession true
<RequireAny>
Require shib-attr AuthType "standard, x509, securePlus2, securePlus3, piv"
Require shib-attr AppAuth true
</RequireAny>
</Location>
<Location /confluencenode3>
# Paths to bypass SSO
#<If "%{REQUEST_URI} =~ m#^/confluence\/rest\/#">
# Satisfy Any
#</If>
<If "%{REQUEST_URI} =~ m#^/(confluencenode3/rest/|confluencenode3/s/).*#">
Satisfy Any
</If>
Order allow,deny
Allow from all
AuthType Shibboleth
Header set X-Forwarded-Proto "https"
ShibUseHeaders On
ShibRequestSetting requireSession true
<RequireAny>
Require shib-attr AuthType "standard, x509, securePlus2, securePlus3, piv"
Require shib-attr AppAuth true
</RequireAny>
</Location>

Thanks

--
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?



--
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux