Bluehost.com Web Hosting $6.95

CGI Directory

This is a discussion on CGI Directory within the Linux Web Servers forums, part of the Web Server and Related Forums category; I'm having trouble getting my CGI directory to work. I have a form that when submitted is supposed to ...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-01-2004
Nick Mont
 
Posts: n/a
Default CGI Directory

I'm having trouble getting my CGI directory to work. I have a form
that when submitted is supposed to go to this particular cgi document.
When the form is submitted Page Not Found is returned. I chmod the
cgi directory to 777 as well as the cgi document and the form and I
still get the same error. I was wondering if anyone has any insight
as to what may be going on. I used
http://httpd.apache.org/docs/howto/cgi.html as my guide to set up my
directory. This is what the cgi part of my httpd.conf looks like

#
# ScriptAlias: This controls which directories contain server
scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the realname directory are treated as applications
and
# run by the server when requested rather than as documents sent
to the client.
# The same rules about trailing "/" apply to ScriptAlias
directives as to
# Alias.
#
ScriptAlias /cgi-bin/ /usr/local/www/site.mysite/cgi-bin

#
# "/usr/local/www/cgi-bin" should be changed to whatever your
ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/usr/local/www/site.mysite/cgi-bin/*.cgi">

Options +ExecCGI


</Directory>

I even uncommented the addhandler line
#
# To use CGI scripts:
#
AddHandler cgi-script .cgi .pl
  #2 (permalink)  
Old 11-01-2004
NiTeHaWK
 
Posts: n/a
Default Re: CGI Directory

Nick Mont wrote:

> <Directory "/usr/local/www/site.mysite/cgi-bin/*.cgi">
>
> Options +ExecCGI
>
>
> </Directory>
>


Try
<Directory "/usr/local/www/site.mysite/cgi-bin">
Options +ExecCGI
</Directory>



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 07:34 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0