If you just visit the script directly rather than posting to it, do you see the script 
source code? If so, it sounds like you have a missing / invalid ScriptAlias entry. If 
you just add something like:

ScriptAlias /cgi-bin/ "/home/httpd/html/cgi-bin/"

... on the assumption that '/cgi-bin/' is the URI of the directory in which your 
script can be accessed, and that /home/httpd/html/cgi-bin/ is the path on the 
filesystem to that same directory. Add the above entry either in the global 
configuration (if the site is using the default settings) or in a VirtualHost 
directive (if that's how the site's being accessed).

Another thing to point out is that it's impossible (as far as I know) to have static 
files (such as web pages, images, etc.) and scripts in the same directory. The reason 
for this is that Apache will never serve a page within a ScriptAlias directory as 
above as-is to a browser - the files can only be executed (this is for security 
reasons as I understand it - so someone can't download a copy of your script, only 
execute it on the server).

Hope this helps, and sorry if I got the wrong end of the stick.

Andy.
-- 
Beauty is in the eye of the beholder... Oh, no - it's just an eyelash.

[EMAIL PROTECTED] wrote:

> Hi!
>
> I have a little problem. A wrote a perl-script to manage guestbook-like
> section of my page. Script is working, but from the shell. When I try to
> post a data through html form I get an error saying that post method is
> not suported by this document. It's in directory with options ExecCGI and
> FollowSymLinks. There is also a script handler for .cgi. What's the
> matter?
> Thanks from advance
>
> IronHand               mailto:[EMAIL PROTECTED]

Reply via email to