Received: (qmail 54715 invoked by uid 501); 27 Apr 2000 19:45:07 -0000 Message-Id: <20000427194507.54714.qmail@locus.apache.org> Date: 27 Apr 2000 19:45:07 -0000 From: Gavin Mathias Reply-To: gmathias@live365.com To: submit@bugz.apache.org Subject: Trying to run scripts in /cgi-bin under mod_perl. Server tries to open "/cgi-bin" instead of the path pointed to by Alias. X-Send-Pr-Version: 3.110 >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: non-critical >Priority: medium >Responsible: apache >State: closed >Quarter: >Keywords: >Date-Required: >Class: mistaken >Submitter-Id: apache >Arrival-Date: Thu Apr 27 12:50:01 PDT 2000 >Closed-Date: Sun Sep 17 21:58:43 PDT 2000 >Last-Modified: Sun Sep 17 21:58:43 PDT 2000 >Originator: gmathias@live365.com >Release: Apache/1.3.12 (Unix) ApacheJServ/1.1 mod_perl/1.23 >Organization: >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" Options FollowSymLinks AllowOverride None Options Indexes FollowSymLinks Options +Includes AllowOverride None Order allow,deny Allow from all DirectoryIndex index.html index.htm HeaderName HEADER AccessFileName .htaccess Order allow,deny Deny from all UseCanonicalName off TypesConfig /u01/apache_perljava/conf/mime.types DefaultType text/plain MIMEMagicFile /u01/apache_perljava/conf/magic 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/ Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all 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 SetHandler server-status Order deny,allow Deny from all Allow from nanocosm.com SetHandler server-info Order deny,allow Deny from all Allow from nanocosm.com PerlRequire /u01/apache_perljava/perl/lib/startup.pl PerlFreshRestart On Alias /perl/ /u01/apache_perljava/perl/ PerlModule Apache::PerlRun PerlModule Apache::Registry SetHandler perl-script PerlHandler Apache::Registry Options +ExecCGI #optional PerlSendHeader On SetHandler perl-script PerlHandler Apache::Registry Options +ExecCGI #optional PerlSendHeader On 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: From: "Gavin Mathias" To: , Cc: Subject: RE: 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 14:36:29 -0700 I fixed it. The last line in httpd.conf (for jserv) was resetting /cgi-bin. Include /u01/java/jserv/etc/jserv.conf Regards, Gavin -----Original Message----- From: submit@bugz.apache.org [mailto:submit@bugz.apache.org] Sent: Thursday, April 27, 2000 12:50 PM To: gmathias@live365.com Subject: Re: 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. Thank you very much for your problem report. It has the internal identification `mod_alias/6030'. The individual assigned to look at your report is: apache. >Category: mod_alias >Responsible: apache >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. >Arrival-Date: Thu Apr 27 12:50:01 PDT 2000 State-Changed-From-To: open-closed State-Changed-By: slive State-Changed-When: Sun Sep 17 21:58:43 PDT 2000 State-Changed-Why: User reports configuration error. Class-Changed-From-To: sw-bug-mistaken Class-Changed-By: slive Class-Changed-When: Sun Sep 17 21:58:43 PDT 2000 Severity-Changed-From-To: critical-non-critical Severity-Changed-By: slive Severity-Changed-When: Sun Sep 17 21:58:43 PDT 2000 >Unformatted: [In order for any reply to be added to the PR database, you need] [to include 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! ]