Wednesday, October 2, 2002, 9:25:06 PM, Petr wrote:
> - PHP is precompiled with Apache in most cases, so let's assume it > is so. The only thing the team needs is to put resulting page > wherever they want into their web-site structure > - now REBOL - no Apache module, only X time slower CGI interface is > left. CGI scripts are supposed to be placed mostly into /cgi-bin or > so subdirectory, but I want such page to be placed everywhere in > web-site directory structure - simply an equivalent of PHP. How to > set apache for that? PHP can run in two modes: - as native module - in cgi redirection mode It actually should be possible, two let RSPs behave quite similar to PHP pages. CGI redirection mode is actually quite interesting: - you register a MIME type with an extension, e.g. application/x-httpd-rebol with .r or .rsp - then you tell apache, that whenever an resource of type application/x-httpd-rebol gets requested, it should take the file and pipe it thru an CGI. so you'll need some components: - an http-accessible directory where CGIs can be executed (usually cgi-bin) - a small rebol CGI, that reads everything it gets from stdin, processes this with build-markup and 'prints the result to stdout - an appropriate apache configuration to do CGI redirection of all .rsp files to this CGI i assume that you've got a place where to put CGIs. Now add the following lines to your apache config: AddType application/x-httpd-rebol .rsp Action application/x-httpd-rebol "/cgi-bin/rsp.cgi" Write the small REBOL CGI outlined before, and place it into your cgi-bin directory (using the extension .cgi). Give it a try and do not hesitate to ask if problems arise :) -- Best regards, Andreas mailto:[EMAIL PROTECTED] -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.
