This topic contains 2 replies, has 3 voices. Last updated by Jason (Lead Developer) 4 years, 7 months ago.
Topic Author | Topic |
---|---|
Posted: Monday May 21st, 2012 at 4:51 pm #14097 | |
I am attempting to use the s2member Remote Header Authentication for specific files & feeds. I have added the necessary parameters to the URL (&s2member_file_remote=yes). I have tried the suggestions from this topic as well, such as adding “s2member_file_inline=yes”. In the browser — if I am logged in WordPress as a user with the correct capabilities, then the authentication and the download work as they should. However, if I am not logged in to the site and attempt to access the link, it prompts me with the Name/Password box to authenticate. If I enter in the same user information I would use to log into the site, the authentication fails. I have double checked the username/pw and used a few different users. I think the issue might be tied to our server configuration. The Remote Header Auth uses the server variables $_SERVER[“PHP_AUTH_USER”] and $_SERVER[“PHP_AUTH_PW”] to verify the issue. According to a few article I found, if our server runs PHP as CGI then those server variables are not allowed to be set or used. Is there a way, using htaccess or some other workaround, to use the s2member Remote Header Authentication option while still having PHP run as CGI on our server? |