You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Michael Olds <Mi...@themozone.net> on 2002/12/29 17:18:34 UTC

[users@httpd] Secure CGI implementation

If the cgi-bin is placed outside the DocumentRoot and a script creates an
html page to be served to the public, how does this work?

Best Wishes!
Mike Olds www.buddhadust.org 

(Accidentally cross-posted to Debian users, apologies!)

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] Secure CGI implementation

Posted by Michael Olds <Mi...@themozone.net>.
> If the cgi-bin is placed outside the DocumentRoot and a script creates an
> html page to be served to the public, how does this work?

If your script is actually creating an HTML document, it should put that
document in a document directory. If, on the other hand, it is merely
outputting HTML content, this is sent directly to the browser, and there
is never an actual disk file created.

OK, Got it; it's up to the script to give directions as to where created
.html documents are stored. Thanks!

Best Wishes!
Mike Olds www.buddhadust.org



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Secure CGI implementation

Posted by Rich Bowen <rb...@rcbowen.com>.
On Sun, 29 Dec 2002, Michael Olds wrote:

> If the cgi-bin is placed outside the DocumentRoot and a script creates an
> html page to be served to the public, how does this work?

If your script is actually creating an HTML document, it should put that
document in a document directory. If, on the other hand, it is merely
outputting HTML content, this is sent directly to the browser, and there
is never an actual disk file created.

-- 
Who can say where the road goes
Where the day flows
Only time
 --Pilgrim (Enya - A Day Without Rain)


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org