DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26984>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26984

handler problem

           Summary: handler problem
           Product: Apache httpd-1.3
           Version: 1.3.29
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: core
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


suppose i want to create my own authentication handler:
<Directory />
    Options FollowSymLinks
    AllowOverride None
# we will authenticate users using this method
 SetHandler perl-script
 PerlHandler Apache::CheckMerleAccess
 PerlSetVar Authen 1
 PerlSetVar NoAuthen "image/png image/gif image/jpg css video"
 PerlSetVar NoAuthenFILE ".css i.html .jpg .js prjct"
#we skip authenticating certain kinds of content
</Directory>

further down the config i have
    ScriptAlias /dev/ "/www/docs/dev/"
    <Directory "/www/docs/dev">
        AllowOverride None
        Options FollowSymLinks
        Order allow,deny
        Allow from all
    </Directory>


before adding the perl handler this directory worked fine executing cgi's. now 
it displays plain text scripts .

i fix this by adding
    ScriptAlias /dev/ "/www/docs/dev/"
    <Directory "/www/docs/dev">

         SetHandler none

        AllowOverride None
        Options FollowSymLinks
        Order allow,deny
        Allow from all
    </Directory>

or 

    ScriptAlias /dev/ "/www/docs/dev/"
    <Directory "/www/docs/dev">

         SetHandler cgi-script

        AllowOverride None
        Options FollowSymLinks
        Order allow,deny
        Allow from all
    </Directory>


.. but now i do not authenticate access to this directory any more.

why would the perl handler on top override the scriptalias setting even after 
it has returned declined?

there is no way to invoke the perl handler first then the cgi-script inside a 
certain directory.

it works fine for the rest of the site so it is only the scriptalias directive 
that is being messed up.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to