httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Hartill <r...@imdb.com>
Subject Not quite a bug, but a feature request... (fwd)
Date Wed, 04 Dec 1996 21:02:34 GMT

Not acked.

----- Forwarded message from Matthew Zahorik -----

Date: Wed, 4 Dec 1996 13:59:15 -0500 (EST)
From: Matthew Zahorik <maz@albany.net>
To: apache-bugs@apache.org
Subject: Not quite a bug, but a feature request...
Message-ID: <Pine.SUN.3.95.961204133245.258L-100000@magik.albany.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

Hola (:

  I'd like to know if there is a workaround for the following problem.

  I'd like virtual servers *not* to inherit certain attributes from the
main server.  Specifically, ScriptAlias'd directories.

  I use CGIWrap, and have hacked Apache to deny all CGI scripts outside
of ScriptAliased directories.

  Using Actions, all files ending in .cgi, .pl, or .sh are given
to /cgi-wrap/cgiwrap, which then executes the CGI script.

  This allows us to track and limit CGI usage, and give each user the
ability to freely write scripts.

  The problem comes when we use virtual servers on the same server.

  The URL http://www.virtual.server.com/cgi-bin/thisCGI

  Causes Apache to follow the host's ScriptAlias to
/usr/local/lib/httpd/cgi-bin/thisCGI

  Adding a ScriptAlias /cgi-bin/ /home/username/public_html/cgi-bin/ under
the virtual server allows scripts to be run without CGIWrap, since the
code lets anything in a ScriptAliased directory run without CGIWrap.

  I tried doing:

<VirtualServer www.mainserver.com>
ScriptAlias /cgi-bin/ /usr/local/lib/httpd/cgi-bin/
</VirtualServer>

<VirtualServer www.virtual.server.com>
...blah, no scriptalises..
</VirtualServer>

  Which worked with any HTTP/1.1 compliant browser, but was ignored by
pre-1.1 browsers. (AOL, Prodigy, etc)

  So, what I'd like to know and/or see is something like this:

In srm.conf:

<Inheritence None>
ScriptAlias /cgi-bin/ /usr/local/lib/httpd/cgi-bin/
</Inheritence>

-or-

In httpd.conf

<VirtualServer www.my.virtual.server.com>
Delete ScriptAlias /cgi-bin/  
-or-
ScriptAlias /cgi-bin/ NULL
</VirtualServer>

Or somesuch, to eliminate rather than override a setting.

Thank you in advance!

- Matt

-----------------*----------------------------------------------------------
Matthew Zahorik /|\       Offering the finest connectivity in Albany.
AlbanyNet      //|\\   Voice:  1 (518) 462 6262    Albany: 1 (518) 242-1111
maz@albany.net   |   Saratoga: 1 (518) 245-1111 Amsterdam: 1 (518) 246-1111
 Info: info@albany.net Sales: sales@albany.net W^3: http://www.albany.net/
-----------------|----------------------------------------------------------


----- End of forwarded message from Matthew Zahorik -----

-- 
Rob Hartill.       Internet Movie Database Ltd.    http://www.imdb.com/  

Mime
View raw message