CGIs with OSX
CGIs with OSX
- Subject: CGIs with OSX
- From: email@hidden
- Date: Sun, 25 Mar 2001 00:11:20 EST
I got my OSX at 10am, even though I had not requested expedited delivery. Way
to go Apple!
Now down to the nitty gritty. I want to test some CGIs using PWS and /or
Apache (not sure they are the same under OSX, see below).
I got into the System Preferences-->Sharing control panel and enabled Web
Sharing. Works fine for static pages. The default page is located in this
directory:
FreeDome:Library:WebServer:Documents:index.html.en
(FreeDome is the partition with OSX installed)
At the level of Documents is another folder name "CGI-Executables". I am
trying to run an Applescript CGI which is known to be good under MacOS 9.1. I
recompiled and saved it as an OSX Applet (using both Script Editor from 9.1
and from OSX). But I cannot make it work.
I have tried ".cgi" and ".acgi" extensions.
I have tried it in the "Documents" folder and the "CGI-Executables" folder.
I have tried relative, root, and absolute URL referencing of the CGI in both
folders.
I have tried it with get and post as the form method.
If I use "get" and the CGI is in the same directory as the calling page, I
get this odd response - "Joy!peffpwpc". Post gives me a "Method Not Allowed"
message.
To make matters more confusing, there is a file named "About Personal
WebSharing.htm" at the root of FreeDome (FreeDome was a pure, empty partition
prior to the OSX install) which says, "To install Personal Web Sharing,
double-click the WebScript icon." Problem is, there is no "WebScript icon"
anywhere to be found.
So, in summary:
1) Are PWS and Apache different apps under OSX?
2) How do I configure Apache?
3) How do I run Applescript CGIs with Apache (or PWS)?
4) Where/what is the "WebScript icon"?
Jeff Baumann
email@hidden
www.linkedresources.com