On Fri, 18 Jun 2004 09:04:08 +0100, Designer <nospamnono.DeleteThis@hotmail.com>
wrote:
>
> so how would you ReWrite a cgi bin for all users on a server?
>
<font color=purple> > <a style='text-decoration: underline;' href="http://www.domain.com/cgi-bin</font" target="_blank">www.domain.com/cgi-bin</font</a>>
<font color=purple> > <a style='text-decoration: underline;' href="http://www.123.com/cgi-bin</font" target="_blank">www.123.com/cgi-bin</font</a>>
>
> resolving to
>
> /domain/www/cgi-bin/
> /123/www/cgi-bin/
>
> and have this working as a CGI-BIN
In the httpd.conf file, something like:
ScriptAlias /cgi-bin/ /domain/www/cgi-bin/
ScriptAlias /cgi-bin/ /123/www/cgi-bin/
You'll need one for each domain definition you have, but there's probably
a better way. I'm more keen on .htaccess, but you can't burrow into the
filesystem with those.
You'll have to hope for one of the resident CGI experts here to speak up
since I abandoned CGI for PHP a long time ago.
Grey
--
The technical axiom that nothing is impossible sinisterly implies the
pitfall corollary that nothing is ridiculous.
- <a style='text-decoration: underline;' href="http://www.greywyvern.com/webslavent.php?msg=53" target="_blank">http://www.greywyvern.com/webslavent.php?msg=53</a> - Support the Opera
Puffin Mascot Campaign!<!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: Newbie: how to do this rewrite