* Sushil Kambampati <
skamb...@wwnorton.com> [2020-09-21 15:51]:
> I've installed SimpleSAMLphp 1.19 and 1.18 following the instructions and
> nothing out of the way, and while I finally got the page to load, trying to
> log in as Administrator generates a too-many-redirects page.
Look at any 'Set-Cookie' and 'Location' HTTP Reponse headers as well
as 'Cookie' HTTP Request headers sent to respectively from your web
browser. The host name for those Cookies is probably wrong somewhere.
>
https://sso.net/simplesaml/module.php/...
>
> Here's my apache config file:
> <VirtualHost *>
> ServerName
sso.wwnorton.net
Those probably are obfuscated to some degree but note that "
sso.net"
(in the URL above) and "
sso.wwnorton.net" in your config) are not the
same.
Also pay attention to the 'baseurlpath' parameter in config/config.php
> DocumentRoot /var/simplesamlphp/www
> SetEnv SIMPLESAMLPHP_CONFIG_DIR /var/simplesamlphp/config
> Alias /simplesaml /var/simplesamlphp/www
Note that setting SIMPLESAMLPHP_CONFIG_DIR to the 'config' directory
from the SSP distribution is both a noop (that's where it would be
found if you didn't set SIMPLESAMLPHP_CONFIG_DIR at all) and more
importantly you'll miss out on having your config dir *outside* of the
software distribution, which would ease SSP updates by keeping your
config separate from the unpacked (and later: updated) distribution.
Also note that you don't need/want to set an Alias of /simplesaml
(i.e., making SSP available at /simplesaml) when your vhost's
DocumentRoot already points to the same directory (i.e., making SSP
available at your web server root /). Use one or the other, depending
on where you want to make SSP available and what else you're hosting
on that vhost. If in doubt, only use the Alias and keep the
DocumentRoot for your application or whatever.
-peter