Re: CGI script executing and Apache help (2nd try important)

2005-03-06 Thread gabriel
How about pasting that httpd.conf?

Cheers!

On Sun, 6 Mar 2005 17:19:02 -0500 (EST), Shawn B [EMAIL PROTECTED] wrote:
 I am running FreeBSD-4.8 with Apache 1.3 installed. I
 changed the htdocs directory in httpd.conf to
 /home/user1/public_html/ and I added a /cgi-bin/ in
 the same user directory. Scripts will not execute from
 the cgi-bin, as the scripts contents are displayed in
 the browser window. I went through httpd.conf using
 the search feature in Easy Editor, editing sections
 that have .cgi in it. Now, I am stumped as to how to
 get the CGI scripts to execute.
 
 Thanks,
 
 Shawn B.
 FreeBSD newbie
 
 __
 Post your free ad now! http://personals.yahoo.ca
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
 


-- 
gabriel,

Member of:
FreeBSD-Announce
FreeBSD-Hardware
FreeBSD-Multimedia
FreeBSD-questions
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: CGI script executing and Apache help (2nd try important)

2005-03-06 Thread Ean Kingston
On Sunday, March 6, 2005, at 05:19  PM, Shawn B wrote:
I am running FreeBSD-4.8 with Apache 1.3 installed. I
changed the htdocs directory in httpd.conf to
/home/user1/public_html/ and I added a /cgi-bin/ in
the same user directory. Scripts will not execute from
the cgi-bin, as the scripts contents are displayed in
the browser window. I went through httpd.conf using
the search feature in Easy Editor, editing sections
that have .cgi in it. Now, I am stumped as to how to
get the CGI scripts to execute.
Try searching again. This time for 'cgi-bin'. You will notice there is 
a section similar to the htdocs bit that defines cgi-bin.

If you are going to run a web server it might be prudent to go through 
the apache configuration and documentation site to try and understand 
what the configuration file has set up for you. You can find the web 
server documentation at: http://httpd.apache.org/docs/

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: CGI script executing and Apache help (2nd try important)

2005-03-06 Thread Paul Schmehl
- Original Message - 
From: Shawn B [EMAIL PROTECTED]
To: FreeBSD-questions@FreeBSD.ORG
Sent: Sunday, March 06, 2005 4:19 PM
Subject: CGI script executing and Apache help (2nd try  important)


I am running FreeBSD-4.8 with Apache 1.3 installed. I
changed the htdocs directory in httpd.conf to
/home/user1/public_html/ and I added a /cgi-bin/ in
the same user directory. Scripts will not execute from
the cgi-bin, as the scripts contents are displayed in
the browser window. I went through httpd.conf using
the search feature in Easy Editor, editing sections
that have .cgi in it. Now, I am stumped as to how to
get the CGI scripts to execute.
In order to get CGI scripts to run in a directory other than the default 
cgi-bin directory, you have to define the directory and include the option 
+ExecCGI

So, in your case, it would be something like this:
Directory /home/user1/public_html
   Options +ExecCGI
/Directory
But, as others have said, you really should read the Apache docs and 
familiarize yourself with the syntax.  Also consider using mod_security to 
protect your server from attack.

Paul Schmehl ([EMAIL PROTECTED])
Adjunct Information Security Officer
University of Texas at Dallas
AVIEN Founding Member
http://www.utdallas.edu/ 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]