You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Zeus <te...@pacific.net.sg> on 2001/06/04 16:01:25 UTC

CGI Problem!

Hi, what a way to start my first post but I need help badly.

My cgi for /var/www/html/zeus/cgi-bin directs to /var/www/cgi-bin 
instead.
 
My domain is frozened.com thus if I entered www.frozened.com/cgi-
bin/newspro/newspro.cgi (/var/www/html/zeus/cgi-
bin/newspro/newspro.cgi) it directs to /var/www/cgi-bin instead.
 
I tried doing the Directives and stuffs, but I still cannot work it.
 
Could someone guide me?



Re: CGI Problem!

Posted by Dale Ghent <da...@elemental.org>.
On Mon, 4 Jun 2001, Zeus wrote:

| >To get you started, you'll probably want to look at your ScriptAlias
| >directive, for one thing.  You should probably consider, however,
| >actually
| >using /var/www/cgi-bin, as it's often inadvisable to put cgi scripts
| >within your document root directory for security reasons.
| >
|
| ScriptAlias /cgi-bin/ "/var/www/cgi-bin/" <-- this is my script alias
|
| How can I fix it such that /var/www/html/users/cgi-bin allows cgi.

Like Cliff said earlier, you HAVE to ask these questions in the apropriate
forum. new-httpd@apache.org is not the forum for end-user support.

That being said, your answer may be found in one of the end-user forums
which are listed at:

    http://nav.webring.yahoo.com/hub?ring=apachesupport&id=12&hub

And you may also find your answer simply by RTFM:

    http://httpd.apache.org/docs/howto/cgi.html

/dale


Re: CGI Problem!

Posted by Zeus <te...@pacific.net.sg>.
>To get you started, you'll probably want to look at your ScriptAlias
>directive, for one thing.  You should probably consider, however,
>actually
>using /var/www/cgi-bin, as it's often inadvisable to put cgi scripts
>within your document root directory for security reasons.
>

ScriptAlias /cgi-bin/ "/var/www/cgi-bin/" <-- this is my script alias

How can I fix it such that /var/www/html/users/cgi-bin allows cgi. 




Re: CGI Problem!

Posted by Cliff Woolley <jw...@virginia.edu>.
On Mon, 4 Jun 2001, Zeus wrote:


> Could someone guide me?

This list is for development, not support.  Please direct your question to
the Usenet group at comp.infosystems.www.servers.unix .  You can probably
also find the answer in the documentation at http://httpd.apache.org/docs/ .

> My cgi for /var/www/html/zeus/cgi-bin directs to /var/www/cgi-bin
> instead. My domain is frozened.com thus if I entered
> www.frozened.com/cgi-bin/newspro/newspro.cgi (/var/www/html/zeus/cgi-
> bin/newspro/newspro.cgi) it directs to /var/www/cgi-bin instead. I
> tried doing the Directives and stuffs, but I still cannot work it.

To get you started, you'll probably want to look at your ScriptAlias
directive, for one thing.  You should probably consider, however, actually
using /var/www/cgi-bin, as it's often inadvisable to put cgi scripts
within your document root directory for security reasons.

Hope this helps.
--Cliff

--------------------------------------------------------------
   Cliff Woolley
   cliffwoolley@yahoo.com
   Charlottesville, VA