in reply to Re: Re: Calling script after htaccess authentification
in thread Calling script after htaccess authentification

The site has a combination of public content, static group content and dynamic private content.

I have a site like this. The scripts that generate dynamic content require an appropriate login cookie, and the data that they use is kept in a folder that is not visible to the web server. No apache authentication is required. Works fine, though it does mean that I have to do downloads via a CGI script, instead of letting the web server handle the details.

I would rather control access to the static group content via htaccess authenticate so that update of the pages does not intermingle with the Perl scripts.

So keep the perl scripts in a separate directory?

I'm still not seeing why you need .htaccess control.

  • Comment on Re: Re: Re: Calling script after htaccess authentification

Replies are listed 'Best First'.
Re: Re: Re: Re: Calling script after htaccess authentification
by Xxaxx (Monk) on Jul 30, 2002 at 20:32 UTC
    though it does mean that I have to do downloads via a CGI script, instead of letting the web server handle the details.

    It is less than satisfying to pass all of the content through a script. It just seems like extra overhead. Apache is optimized for shoveling pages to browsers. Putting the Perl script in the middle seems like extra overhead. Maybe this is just my old 8088 conservatism. Trying to eliminate all extra processes.

    Claude

      It is less than satisfying to pass all of the content through a script. It just seems like extra overhead.

      It's extra overhead, but unless downloads are very frequent occurances, so what? The benefit you gain from this scheme is that you don't need to use two login schemes.