www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gavin Mathias <gmath...@live365.com>
Subject mod_alias/6030: Trying to run scripts in /cgi-bin under mod_perl. Server tries to open "/cgi-bin" instead of the path pointed to by Alias.
Date Thu, 27 Apr 2000 19:45:07 GMT

>Number:         6030
>Category:       mod_alias
>Synopsis:       Trying to run scripts in /cgi-bin under mod_perl. Server tries to open
"/cgi-bin" instead of the path pointed to by Alias.
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Thu Apr 27 12:50:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     gmathias@live365.com
>Release:        Apache/1.3.12 (Unix) ApacheJServ/1.1 mod_perl/1.23
>Organization:
apache
>Environment:
SunOS xxxx 5.7 Generic_106541-07 sun4u sparc SUNW,Ultra-60
gcc version 2.8.1

>Description:
This directive doesn't seem to be working:
Alias /cgi-bin/ /u01/apache_perljava/cgi-bin/

Output from truss:
read(3, " G E T   / c g i - b i n".., 4096)     = 187
sigaction(SIGUSR1, 0xFFBED630, 0xFFBED6B0)      = 0
time()                                          = 956863090
sigaction(SIGALRM, 0x00000000, 0xFFBEF550)      = 0
getcontext(0xFFBEF208)
stat("/cgi-bin/add_song.cgi", 0x00190B50)       = 0
chdir("/cgi-bin")                               = 0

Configuration:



ServerType standalone

ServerRoot "/u01/apache_perljava"


PidFile /u01/apache_perljava/logs/httpd.pid

ScoreBoardFile /u01/apache_perljava/logs/httpd.scoreboard

ResourceConfig /dev/null
AccessConfig /dev/null

Timeout 300

KeepAlive On

MaxKeepAliveRequests 100

KeepAliveTimeout 15

MinSpareServers 20
MaxSpareServers 40

StartServers 50

MaxClients 500

MaxRequestsPerChild 100


ExtendedStatus On

Port 88

User www
Group www


DocumentRoot "/u01/apache_perljava/htdocs"

<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>


<Directory "/u01/apache_perljava/htdocs">

    Options Indexes FollowSymLinks
        Options +Includes

    AllowOverride None

    Order allow,deny
    Allow from all
</Directory>

DirectoryIndex index.html index.htm
HeaderName HEADER


AccessFileName .htaccess

        <Files .htaccess>
            Order allow,deny
            Deny from all
        </Files>

UseCanonicalName off

TypesConfig /u01/apache_perljava/conf/mime.types

DefaultType text/plain

<IfModule mod_mime_magic.c>
    MIMEMagicFile /u01/apache_perljava/conf/magic
</IfModule>

HostnameLookups off

ErrorLog /u01/apache_perljava/logs/error_log

LogLevel debug

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" \"%{Sane
Cookie}n\" %<{SaneStop}n %T \"%{Cookie}i\"" custom
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combine
d
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

CustomLog /u01/apache_perljava/logs/access_log custom

Alias /icons/           /u01/apache_perljava/icons/
Alias /ads/             /u01/apache_perljava/htdocs/ads/
Alias /L505772548/      /users/

<Directory "/u01/apache_perljava/icons">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

Alias /cgi-bin/ /u01/apache_perljava/cgi-bin/
ScriptLog /tmp/slog

IndexOptions FancyIndexing

AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip

AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*

AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core

AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^

DefaultIcon /icons/unknown.gif


ReadmeName README
HeaderName HEADER

IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t

AddEncoding x-compress Z
AddEncoding x-gzip gz

AddLanguage en .en
AddLanguage fr .fr
AddLanguage de .de
AddLanguage da .da
AddLanguage el .el
AddLanguage it .it

LanguagePriority en fr de



AddHandler fastcgi-script .fcg .fcgi .fpl

AddType text/html .shtml
AddHandler server-parsed .shtml
AddHandler server-parsed .html


ErrorDocument 404 /error.html

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 nanocosm.com
</Location>

<Location /server-info>
    SetHandler server-info
    Order deny,allow
    Deny from all
    Allow from nanocosm.com
</Location>


PerlRequire /u01/apache_perljava/perl/lib/startup.pl
PerlFreshRestart On

Alias /perl/ /u01/apache_perljava/perl/

PerlModule Apache::PerlRun
PerlModule Apache::Registry

<Location /cgi-bin>
      SetHandler perl-script
      PerlHandler Apache::Registry
      Options +ExecCGI
      #optional
      PerlSendHeader On
</Location>
<Location /perl>
      SetHandler perl-script
      PerlHandler Apache::Registry
      Options +ExecCGI
      #optional
      PerlSendHeader On
</Location>
Include /u01/java/jserv/etc/jserv.conf



>How-To-Repeat:
I'm not sure. We don't see it on these boxes configured in exactly the same way:
SunOS xxxx 5.7 Generic_106541-07 sun4u sparc SUNW,UltraSPARC-IIi-Engine
SunOS xxxx 5.7 Generic sun4u sparc SUNW,Ultra-1
Could this be something peculiar to the Ultra 60?
Here is a truss from a properly working server:
read(5, " G E T   / c g i - b i n".., 4096)     = 203
sigaction(SIGUSR1, 0xFFBED428, 0xFFBED4A8)      = 0
time()                                          = 956864352
stat("/u01/apache_perljava/cgi-bin/add_song.cgi", 0x00338108) = 0
sigaction(SIGALRM, 0x00000000, 0xFFBEF348)      = 0
getcontext(0xFFBEF000)
stat("/u01/apache_perljava/cgi-bin/add_song.cgi", 0x00190B50) = 0
chdir("/u01/apache_perljava/cgi-bin")           = 0
>Fix:
Making a link in the server root file system fixes it but this is not a good 
long term solution. 
/cgi-bin -> /u01/apache_perljava/cgi-bin
>Release-Note:
>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