I think I must be doing something fundamentally wrong here. Perhaps if I
describe exactly what I've done, someone could point out my error(s) or
omission(s). I'm working on NT.

1. On a network drive known as "winntdoc" and mapped to my machine as "N:",
I created a directory called "Marni" and within that I created a
subdirectory called "cgi-bin".

2. I copied the following files to this directory: mc.exe, mchome.mc,
mctools.mc, mchttpd_0.1b.mc, echo.mt, survey.mt, MChttpd.log, MChttpd.conf,
and the .gif files that came with the mchttpd download.

3. I opened MetaCard and then opened mchttpd_0.1b.mc.

4. I changed the settings in mchttpd to Port=1080 and Root=N:/Marni/cgi-bin,
and clicked SET to save the settings.

5. I clicked the START SERVER button.

6. I created a simple web page containing a form with one field and a submit
button. The HTML for the form is:
<FORM ACTION="http://winntdoc/Data Drive/Marni/cgi-bin/echo.mt"
METHOD="POST" ENCTYPE="application/x-www-form-urlencoded">
<INPUT TYPE="Text" NAME="Marni"><INPUT TYPE="Submit" NAME="Submit"
VALUE="Submit">
</FORM>

When I open the web page and enter text in the field and then click Submit,
IE tells me "The page cannot be displayed" and the IE title bar says "HTTP
501 Not Implemented."

I also tried setting the root to N:/Marni, //winntdoc/Data Drive/Marni and
//winntdoc/Data Drive/Marni/cgi-bin (without changing the HTML code at all),
but got the same result with each of these. 

If I change the HTML code to say "file:" instead of "http:", the text of
echo.mt displays in the browser, so I know I've got the right path set in
the HTML code.  I figure I must be doing something wrong with the server
setup, because my HTML page echoes properly to
http://www.metacard.com/cgi-bin/echo.mt. Any ideas?

I'd really appreciate any help that anyone can provide.

Thanks,
Marni 
--
Marni Centor
Summit Systems
22 Cortlandt St.
New York, NY 10007
(212) 896-3466 

> -----Original Message-----
> From: Scott Raney [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 22, 1999 7:54 PM
> To: [EMAIL PROTECTED]
> Subject: Re: More questions about mchttpd server
> 
> 
> On Mon, 22 Nov 1999, Andu wrote:
> 
> > >OK, so I downloaded it, got it started (looks like it 
> requires MC 2.3;
> > >fine). But now I don't really understand how to use it. 
> Scott said I had to
> > >change the port from 8080 if I already have another server 
> running. How can
> > >I find out what another valid port number is?
> > 
> > You can use any port number. Conventionally 80 is for web 
> servers, 21 is
> > for ftp servers 25 is for mail.
> 
> Note that most UNIX systems won't let you do an accept on a port with
> a number lower than 1024 unless you run the process as root.  Doing
> that is OK for production environments, but for development you'll
> want to run the server as a normal user.  Some common choices for HTTP
> development are 1080 and 8080.  Not sure why, maybe they're just easy
> to remember.
> 
> > If the client doesn't specify the port it is understood it 
> is one of the
> > above but if you want to use another port for mchttpd the 
> client must
> > specify that in the address (i.e. 
> 145,134.1.2:8080/file.html) since the
> > server listens to that port. You can of course have the 
> server listen to a
> > number of ports.
> 
> This isn't supported in the current mchttpd but would probably be easy
> to add if anyone could think of a good reason why this would be
> necessary (I can't ;-)
>   Scott
> 
> > Regards, Andu
> 
> ********************************************************
> Scott Raney  [EMAIL PROTECTED]  http://www.metacard.com
> MetaCard: You know, there's an easier way to do that...
> 

----------------------------------------------------------------------------
--------------------
The views and opinions expressed in this email message are the sender's
own, and do not necessarily represent the views and opinions of Summit
Systems Inc.

Reply via email to