www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lance Held <h...@sniff.org>
Subject config/4646: Can't get handlers to work concurrently with authentication
Date Thu, 24 Jun 1999 21:38:44 GMT

>Number:         4646
>Category:       config
>Synopsis:       Can't get handlers to work concurrently with authentication
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          support
>Submitter-Id:   apache
>Arrival-Date:   Thu Jun 24 14:40:00 PDT 1999
>Last-Modified:
>Originator:     held@sniff.org
>Organization:
apache
>Release:        1.3.6
>Environment:
OS == QNX 4.24
CC == Borland 10.6
>Description:
>From error_log:

   [DATE] [warn] [CLIENT] handler "action-XXXX" not found for: /full/path/to/file
   //12/usr/apache/httpd terminated (SIGSEGV) at 0007:00054E3F.
   [DATE] [notice] chile PID ##### exit signal Segmentation fault (11)

>From Client-side you see, "Document contains no data."

===============================================================================

Here's the situation, I have a cgi-bin dir that contains a .htaccess file.
Consequently, *ALL* of my cgi scripts are authenticated (this is a MUST).
My Actions that the handlers call also live under the cgi-bin directory.
If I use the httpd.auth for my config, the authentication works, but I get the
above errors for the handlers.  If I use httpd.act for my config, the 
handlers work, but the authentication doesn't.  I've tried moving the handlers
out of the cgi-bin directory and into a dir that allows ExecCGI, but that didn't
work either.

One thing to note is that I had this working fine with Apache 1.1b2 with
the old httpd.conf/srm.conf/access.conf triumvirate.  I *thought* that I
had merged them into the single httpd.conf file without error, but there
may be some "extra" stuff in the new httpd.conf-dist that is messing me up.
My original conf files for 1.1b2 are available upon request.

===============================================================================
(httpd.auth)

### Section 1: Global Environment
ServerType standalone
ServerRoot "/usr/apache"
PidFile logs/httpd.pid
ScoreBoardFile logs/apache_status
Timeout 60
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 5
MinSpareServers 5
MaxSpareServers 10
StartServers 5
MaxClients 150
MaxRequestsPerChild 30

### Section 2: 'Main' server configuration
Port 80
# Yes, I am aware of the dangers running as 'root'
User root
Group #100
ServerAdmin support@nanogen.com
ServerName 10.1.0.100
DocumentRoot "/usr/nanogen/docs"
<Directory />
    Options FollowSymLinks
    AllowOverride All
</Directory>
<Directory "/usr/nanogen/docs">
    Options Indexes FollowSymLinks ExecCGI
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
DirectoryIndex index.html index.htm
AccessFileName .htaccess
<Files .htaccess>
    Order allow,deny
    Deny from all
</Files>
UseCanonicalName On
TypesConfig conf/mime.types
DefaultType text/plain
<IfModule mod_mime_magic.c>
    MIMEMagicFile conf/magic
</IfModule>
HostnameLookups Off
ErrorLog logs/error_log
LogLevel debug
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
CustomLog logs/access_log common
ServerSignature EMail
Alias /sys_icons "/usr/apache/icons"
<Directory "/usr/apache/icons">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
Alias /users "/usr/nanogen/users"
Alias /naf "/usr/nanogen/naf"
Alias /map "/usr/nanogen/map"
Alias /shared "/usr/nanogen/shared"
Alias /unclaimed-cartridges "/usr/nanogen/unclaimed-cartridges"
Alias /archived-cartridges "/usr/nanogen/archived-cartridges"
ScriptAlias /cgi-bin/ "/usr/nanogen/cgi-bin/"
<Directory "/usr/nanogen/cgi-bin">
    AllowOverride All
    Options None
    Order allow,deny
    Allow from all
</Directory>
IndexOptions FancyIndexing
# I'll leave out all the AddIcon's
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
AddHandler cgi-script .cgi
AddHandler protocol-action naf
Action protocol-action /cgi-bin/explorer/view_naf.pl
AddHandler map-action map
Action map-action /cgi-bin/explorer/view_map.pl
AddHandler out-action out
Action out-action /cgi-bin/explorer/view_out.pl
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0
<Location /server-status>
    SetHandler server-status
    Order deny,allow
    Deny from all
    Allow from 10.1.0.100
</Location>

===============================================================================
(httpd.act)

### Section 1: Global Environment
ServerType standalone
ServerRoot "/usr/apache"
PidFile logs/httpd.pid
ScoreBoardFile logs/apache_status
Timeout 60
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 5
MinSpareServers 5
MaxSpareServers 10
StartServers 5
MaxClients 150
MaxRequestsPerChild 30

### Section 2: 'Main' server configuration
Port 80
# Yes, I am aware of the dangers running as 'root'
User root
Group #100
ServerAdmin support@nanogen.com
ServerName 10.1.0.100
DocumentRoot "/usr/nanogen/docs"
<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>
<Directory "/usr/nanogen/docs">
    Options Indexes FollowSymLinks ExecCGI
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
DirectoryIndex index.html index.htm
AccessFileName .htaccess
<Files .htaccess>
    Order allow,deny
    Deny from all
</Files>
UseCanonicalName On
TypesConfig conf/mime.types
DefaultType text/plain
<IfModule mod_mime_magic.c>
    MIMEMagicFile conf/magic
</IfModule>
HostnameLookups Off
ErrorLog logs/error_log
LogLevel debug
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
CustomLog logs/access_log common
ServerSignature EMail
Alias /sys_icons "/usr/apache/icons"
<Directory "/usr/apache/icons">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
Alias /users "/usr/nanogen/users"
Alias /naf "/usr/nanogen/naf"
Alias /map "/usr/nanogen/map"
Alias /shared "/usr/nanogen/shared"
Alias /unclaimed-cartridges "/usr/nanogen/unclaimed-cartridges"
Alias /archived-cartridges "/usr/nanogen/archived-cartridges"
ScriptAlias /cgi-bin/ "/usr/nanogen/cgi-bin/"
<Directory "/usr/nanogen/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>
IndexOptions FancyIndexing
# I'll leave out all the AddIcon's
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
AddHandler cgi-script .cgi
AddHandler protocol-action naf
Action protocol-action /cgi-bin/explorer/view_naf.pl
AddHandler map-action map
Action map-action /cgi-bin/explorer/view_map.pl
AddHandler out-action out
Action out-action /cgi-bin/explorer/view_out.pl
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0
<Location /server-status>
    SetHandler server-status
    Order deny,allow
    Deny from all
    Allow from 10.1.0.100
</Location>

===============================================================================
(.htaccess)

AuthUserFile /usr/nanogen/.htpasswd
AuthName "Nanogen Research Instrument"
AuthType Basic
Options All

<Limit GET POST>
require valid-user
</Limit>
>How-To-Repeat:
Use my conf files that I included in the full description above.
>Fix:
Tweaking the conf file might do it, but I haven't been able to crack the code.
Could be a bug, but I seriously doubt it as it would seem to have been a 
*HUGE* oversight if it was.
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, you need]
[to include <apbugs@Apache.Org> in the Cc line and make sure the]
[subject line starts with the report component and number, with ]
[or without any 'Re:' prefixes (such as "general/1098:" or      ]
["Re: general/1098:").  If the subject doesn't match this       ]
[pattern, your message will be misfiled and ignored.  The       ]
["apbugs" address is not added to the Cc line of messages from  ]
[the database automatically because of the potential for mail   ]
[loops.  If you do not include this Cc, your reply may be ig-   ]
[nored unless you are responding to an explicit request from a  ]
[developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]




Mime
View raw message