Received: (qmail 15461 invoked by uid 2012); 3 Mar 1998 07:04:21 -0000 Message-Id: <19980303070421.15460.qmail@hyperreal.org> Date: 3 Mar 1998 07:04:21 -0000 From: Andreas Jung Reply-To: ajung@sz-sb.de To: apbugs@hyperreal.org Subject: ScriptAlias and Non-IP VirtualHost X-Send-Pr-Version: 3.2 >Number: 1907 >Category: mod_alias >Synopsis: ScriptAlias and Non-IP VirtualHost >Confidential: no >Severity: serious >Priority: medium >Responsible: apache >State: closed >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Mon Mar 2 23:10:00 PST 1998 >Last-Modified: Tue May 19 20:01:06 PDT 1998 >Originator: ajung@sz-sb.de >Organization: >Release: 1.3b5 >Environment: gcc 2.7.2.2 SunOS saarland 5.5.1 Generic_103640-05 sun4m sparc SUNW,SPARCstation-20 >Description: I am just playing around with a Non-IP based Apache Server 1.2.5 and discovered the following strange behaviour: I had a ScriptAlias /cgu-bin/ outside the statements. Scrips could be run with http:///cgi-bin/script.cgi for all configured s. Then I tried to put different /cgi-bin Aliases into each enviroment The global ScriptAlias has been removed. From now on Apache tried to start the script from /usr/local/etc/httpd/htdocs/cgi-bin/ as the error_log show: [Wed Feb 25 15:11:18 1998] access to /usr/local/etc/httpd/htdocs/cgi-bin/test.cgi failed for saarland, reason: File does not exist Here is are the lines of the section: ServerName epsilon.sz-sb.de DocumentRoot /WWW/domains/epsilon/html CustomLog /WWW/domains/epsilon/logs/access_log "%h %l %u %t \"%r\" %>s %b \ "%{referer}i\" \"%{user-agent}i\" %v " ScriptAlias /cgi-bin/ /WWW/domains/epsilon/cgi-bin/ Why does not Apache recognize ScriptAlias inside this section ???? Thanks Andreas This has been reported to comp.infosystems.www.servers.unix but without any backfeed yet >How-To-Repeat: >Fix: >Audit-Trail: From: Dean Gaudet To: Andreas Jung Cc: apbugs@hyperreal.org Subject: Re: mod_alias/1907: ScriptAlias and Non-IP VirtualHost Date: Mon, 2 Mar 1998 23:26:02 -0800 (PST) It's likely that apache isn't recognizing the virtual host. Which can be for any number of reasons... Have you read the vhost documentation? Non-IP virtual hosts changed significantly between 1.2 and 1.3. Dean From: Dean Gaudet To: Andreas Jung Cc: apbugs@apache.org Subject: Re: mod_alias/1907: ScriptAlias and Non-IP VirtualHost Date: Mon, 2 Mar 1998 23:43:31 -0800 (PST) Can you verify that it is in fact recognizing the virtual host that you're having the cgi-bin trouble with? And you're sure none of your other config files have ScriptAlias /cgi-bin/ directives? For example, the following config works as expected for me. So there's definately something more in your config. Dean Port 8080 ServerRoot /home/dgaudet/ap/apachen DocumentRoot /home/dgaudet/ap/apachen/htdocs MaxClients 5 StartServers 5 MinSpareServers 1 MaxSpareServers 2 MaxRequestsPerChild 100000 ResourceConfig /dev/null AccessConfig /dev/null ErrorLog logs/error_log AllowOverride none Options FollowSymLinks ExecCGI NameVirtualHost 127.0.0.1 ServerName asdf ScriptAlias /cgi-bin/ /does/not/exist/ ServerName ffff ScriptAlias /cgi-bin/ /not/here/either/ From: Dean Gaudet To: apbugs@apache.org Cc: Subject: Re: mod_alias/1907: ScriptAlias and Non-IP VirtualHost (fwd) Date: Mon, 2 Mar 1998 23:43:34 -0800 (PST) ---------- Forwarded message ---------- Date: Tue, 3 Mar 1998 08:28:11 +0100 From: Andreas Jung To: Dean Gaudet Subject: Re: mod_alias/1907: ScriptAlias and Non-IP VirtualHost On Mon, Mar 02, 1998 at 11:26:02PM -0800, Dean Gaudet wrote: > It's likely that apache isn't recognizing the virtual host. Which can be > for any number of reasons... Have you read the vhost documentation? > Non-IP virtual hosts changed significantly between 1.2 and 1.3. >=20 I am sure I does because this machine is now running as a production server with more than 20 non-IP based virtual hosts ! Do you need more infos ? Maybe our config file ? Thanks, Andreas --=20 _\\|//_ (' O-O ') ------------------------------ooO-(_)-Ooo----------------------------------= ---- Andreas Jung, Saarbr=FCcker Zeitung Verlag und Druckerei GmbH Saarbr=FCcker Daten-Innovations-Center Gutenbergstr. 11-23, D-66117 Saarbr=FCcken, Germany Phone: +49-(0)681-502-1528, Fax: +49-(0)681-502-1509 Email: ajung@sz-sb.de (PGP key available) ---------------------------------------------------------------------------= ---- State-Changed-From-To: open-closed State-Changed-By: brian State-Changed-When: Tue May 19 20:01:06 PDT 1998 State-Changed-Why: [This is a standard response.] No response from submitter, assuming issue has been resolved. >Unformatted: [In order for any reply to be added to the PR database, ] [you need to include in the Cc line ] [and leave the subject line UNCHANGED. This is not done] [automatically because of the potential for mail loops. ]