Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
when accessing to http://example.com/saml_login it shows a 404 error page. I have configured the SimpleSaml path in settings.php:
$settings['simplesamlphp_dir'] = '/var/www/vhosts/example.com/sp.example.com';
SimpleSaml SP is installed on sp.example.com whilst Drupal is installed on example.com. The SP works correctly, and the authentication source is correctly configured.
The error I get in my logs is:
File does not exist: /var/www/vhosts/example.com/httpdocs/saml_login, referer: http://example.com/user/login
(Drupal is located at /var/www/vhosts/example.com/httpdocs)
Thanks!
Comments
Comment #2
lucarg CreditAttribution: lucarg commentedComment #3
odegard CreditAttribution: odegard commentedMy first thought is that you haven't created an alias in the vhost config pointing to where simplesaml_php/www is. See #6 here https://simplesamlphp.org/docs/stable/simplesamlphp-install
Comment #4
dakku CreditAttribution: dakku as a volunteer commentedComment #5
dakku CreditAttribution: dakku as a volunteer commentedComment #6
AgentJay CreditAttribution: AgentJay commentedI'm having the same issue. I've installed the module using composer.
I've configured the module according to the instructions. Including the vhost file
When I click the 'Federated Login' link I go to a 404 page at this address:
https://testalpha.test.com/simplesaml/module.php/core/loginuserpass.php?...
The path 'https://testalpha.test.com/simplesaml/module.php' resolves correctly. And shows module.php meaning the vhost alias is correct... but the rest of the stuff that gets added breaks it leading to a 404 error