Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: pass variables using #exec cgi

From: gjones05::mail::orion::org at: 7-Feb-2001 19:11

Hi, Ryan, Could be several problems. First, for Apache, you likely will need to change the file's extension to .shtml. This is the file extension that the server intercepts in order to act on the commands. If that doesn't fix the problem, then depending on which directory the index.shtml file is in, you may need to add the root path. <!--#exec cgi="cgi-bin/display-messages.cgi?messageType=news&messageID=none"--> to <!--#exec cgi="/cgi-bin/display-messages.cgi?messageType=news&messageID=none"--> If that doesn't fix it, then I would start assuming that the server has not been set up to allow server side includes. In the httpd.conf file, uncomment the following lines that begin with Add. # To use server-parsed HTML files # #AddType text/html .shtml #AddHandler server-parsed .shtml to # To use server-parsed HTML files # AddType text/html .shtml AddHandler server-parsed .shtml Then save the httpd.conf file, then start/restart Apache. If that doesn't fix it, then there maybe some other configuration setting that is not correct. For example, if the directory has an .htaccess file, the directives in that file will over-ride those in httpd.conf. If you are using IIS, then forget almost everything you just read, delete this email and look for other responses ;-) I suspect the file extension may be all that you need to do. Good luck. --Scott