The following reply was made to PR config/5321; it has been noted by GNATS.
From: Marc Slemko <[EMAIL PROTECTED]> To: Miguel Vitorino <[EMAIL PROTECTED]> Cc: Apache bugs database <[EMAIL PROTECTED]> Subject: Re: config/5321: VirtualHosts and ScriptAlias Date: Wed, 17 Nov 1999 10:01:49 -0700 (MST) On Wed, 17 Nov 1999, Miguel Vitorino wrote: > Hi! > > > Synopsis: VirtualHosts and ScriptAlias > > State-Changed-From-To: open-feedback > > State-Changed-By: marc > > State-Changed-When: Tue Nov 16 14:40:17 PST 1999 > > State-Changed-Why: > > You really need to be specific about details. We can't > > read minds. Things like "latest" version of Apache have > > little meaning. > > > > You need to say exactly what directives you tried in your > > config file and exactly what happened when you tried > > to use it that made you think it wasn't working properly. > > > > It may be obvious to you, but we have no idea what you are > > doing unless you tell us... > > Ok, here it goes: > BEFORE: > I had a "ScriptAlias /w /cgi-bin/alias.cgi" - this script, depending on > the type of client would send a HTML, WML or HDML page. When we used > http://www.domain.tld/w - everything went smoothly > ("/w" is really in the directory /var/www/w) > > AFTER: > Our local NIC gave us a new domain. Since we're short of IP addresses, we > used a Named Virtual Host - that is http://www.newdomain.tld/ pointing to > the disk location of the earlier ScriptAlias (that is /var/www/w). Since the > ScriptAlias directive works only a global basis, I couldn't do something > like: > "ScriptAlias http://www.newdomain.tld /cgi-bin/alias.cgi" or > "ScriptAlias /var/www/w /cgi-bin/alias.cgi". What is wrong with "ScriptAlias / /path/to/cgi" in the appropriate VirtualHost section? Note that, as the docs clearly describe, scriptalias takes a url path and maps it to a filesystem path. So unless your filesystem has a "/cgi-bin" directory, what you say you used can't work.
