ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Template with HTTP Authentication problem

November 29, 2010 3:15pm

Subscribe [2]
  • #1 / Nov 29, 2010 3:15pm

    kaisersushi

    4 posts

    Hi,

    We set up an EE template with HTTP Authentication but couldn’t get it to work.

    The only thing we’ve come up with is the note on this page:
    http://ellislab.com/expressionengine/user-guide/cp/design/templates/template_access.html

    which says:

    Note: If the login fails, the user will receive a 401 Not Authorized page, and not the redirect template specified in the above drop-down menu. Additionally, this ability is typically only available when PHP is run as an Apache module.

    So, we checked our hosting provider who said they do not support running PHP as an Apache module for various security reasons (they use suEXEC which means it’s run as a CGI).

    If that’s the problem then is there anyway we can hack EE to allow us to solve the problem of authenticating templates on our web site?

    Thanks
    Kay

  • #2 / Nov 30, 2010 1:49am

    John Henry Donovan

    12339 posts

    Kay,

    What’s the your final purpose of hiding this page.
    You could always wrap the content of the page in a logged in conditional?

    {if group_id == '1' OR group_id ='6'}
    
    Show Content
    
    {/if}


    or if just Superadmins need to access it

    {if logged_in}
    Show Content
    {/if}

    Would any of those or similar be an option?

  • #3 / Dec 02, 2010 11:22am

    kaisersushi

    4 posts

    It’s for content that will be accessed as a secure feed.

    Do either of the above suggestions mean we could set up a login using HTTP Auth when running PHP as a CGI?

  • #4 / Dec 03, 2010 3:36am

    John Henry Donovan

    12339 posts

    kaisersushi,

    Do either of the above suggestions mean we could set up a login using HTTP Auth when running PHP as a CGI?

    No they are workarounds so a user has to login to EE to view content.  HTTP Auth in your EE templates via our feature won’t work. You could try your own http authentication with PHP but can’t guarantee it will work but worth a try.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases