You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by infotechsys <in...@pivot.net> on 2002/03/20 13:24:17 UTC

Q. on the "/" in ScriptAlias.

Hi,
The documentation that I've so far does not make
it clear whether the "/" at the end of the path
implies that subdirectories will be search for the
cgi script. For example, if I put the directive
ScriptAlias /mydir/  "/usr/local/www/mydir/".
does this mean that all subdirectories will
be search under "mydir"?
Thanks.
Wayne



---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org


Re: Q. on the "/" in ScriptAlias.

Posted by infotechsys <in...@pivot.net>.
Tahnks for the advice, this worked.
Wayne

Owen Boyle wrote:

>infotechsys wrote:
>
>>Hi,
>>The documentation that I've so far does not make
>>it clear whether the "/" at the end of the path
>>implies that subdirectories will be search for the
>>cgi script. For example, if I put the directive
>>ScriptAlias /mydir/  "/usr/local/www/mydir/".
>>does this mean that all subdirectories will
>>be search under "mydir"?
>>
>
>There are two things going on here:
>
>(1) The ScriptAlias directive declares a directory - and all its
>subdirectories - as containing CGI scripts. This means that any file
>under the root CGI directory will be treated as a CGI and that apache
>will try to execute it.
>
>(2) In the URL, you must specify the complete path to the script you
>want to execute - apache will not search down through the directory
>structure looking for it.
>
>So if you have:
>
>	ScriptAlias /cgi  /usr/local/www/mycgi
>
>and you have a script at
>
>	/usr/local/www/mycgi/dir1/dir2/prog.cgi
>
>this script will be declared as a CGI, but you must type:
>
>	http://server-name/cgi/dir1/dir2/prog.cgi
>
>to execute it.
>
>i.e. http://server-name/cgi/prog.cgi won't work...
>
>Rgds,
>
>Owen Boyle.
>
>PS it is conventional to call a cgi directory "cgi" or "cgi-bin" -
>"mydir" is a bit funny-looking...
>
>---------------------------------------------------------------------
>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
>For additional commands, e-mail: users-help@httpd.apache.org
>
>
>



Re: Apache 2

Posted by Steven Pierce <pa...@speakeasy.net>.

Joshua,

Thank you for the input.  I will make sure of that before I use it
in a production enviroment.

S

*********** REPLY SEPARATOR  ***********

On 3/20/2002 at 10:43 AM Joshua Slive wrote:

>On Wed, 20 Mar 2002, Steven Pierce wrote:
>> I am a member of a linux group, and last night we had our first
>> SIG meeting.  Well that is what it is being called at this time.  An
>> one of the items that came up was an interest in seeing the new 2.0 of
>> Apache.  I understand that it is still in beta, but is it stable enough
>that
>> it can be used?
>>
> [snip]
>Apache 2 is stable enough to be used, conditional on doing your own
>testing to assure that everything works properly on your site.  Of course,
>the same is true for Apache 1.3.  It is always your responsibility to
>assure that the software works properly for you.
>
>A final release of Apache 2 may come very soon, but it is really
>impossible to predict with accuracy.  It depends on the priorities of the
>various developers involved.  However, it has been running on apache.org
>for a long time, and has been very stable there.  I think it is ready for
>production use, again conditional on extensive testing in your own setup.
>
>Joshua.
>
>
>---------------------------------------------------------------------
>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
>For additional commands, e-mail: users-help@httpd.apache.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
For additional commands, e-mail: users-help@httpd.apache.org


Re: Apache 2

Posted by Joshua Slive <jo...@slive.ca>.
On Wed, 20 Mar 2002, Steven Pierce wrote:
> I am a member of a linux group, and last night we had our first
> SIG meeting.  Well that is what it is being called at this time.  An
> one of the items that came up was an interest in seeing the new 2.0 of
> Apache.  I understand that it is still in beta, but is it stable enough that
> it can be used?
>
> I know that Apache is always stable, but where is the developement
> at, at this point??
>
> I have read the apache web site, but it does not talk about what
> is really going on currently.
>
> So any information that anyone can provide would be helpful.

Apache 2 is stable enough to be used, conditional on doing your own
testing to assure that everything works properly on your site.  Of course,
the same is true for Apache 1.3.  It is always your responsibility to
assure that the software works properly for you.

A final release of Apache 2 may come very soon, but it is really
impossible to predict with accuracy.  It depends on the priorities of the
various developers involved.  However, it has been running on apache.org
for a long time, and has been very stable there.  I think it is ready for
production use, again conditional on extensive testing in your own setup.

Joshua.


---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org


Apache 2

Posted by Steven Pierce <pa...@speakeasy.net>.
Good Morning,

I have a question that I have not seen on the list.  It is not off topic, but 
I am not sure that it has been covered.  

I am a member of a linux group, and last night we had our first 
SIG meeting.  Well that is what it is being called at this time.  An
one of the items that came up was an interest in seeing the new 2.0 of
Apache.  I understand that it is still in beta, but is it stable enough that
it can be used?  

I know that Apache is always stable, but where is the developement 
at, at this point??  

I have read the apache web site, but it does not talk about what 
is really going on currently.  

So any information that anyone can provide would be helpful.


---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org


Re: Q. on the "/" in ScriptAlias.

Posted by Owen Boyle <ob...@bourse.ch>.
infotechsys wrote:
> 
> Hi,
> The documentation that I've so far does not make
> it clear whether the "/" at the end of the path
> implies that subdirectories will be search for the
> cgi script. For example, if I put the directive
> ScriptAlias /mydir/  "/usr/local/www/mydir/".
> does this mean that all subdirectories will
> be search under "mydir"?

There are two things going on here:

(1) The ScriptAlias directive declares a directory - and all its
subdirectories - as containing CGI scripts. This means that any file
under the root CGI directory will be treated as a CGI and that apache
will try to execute it.

(2) In the URL, you must specify the complete path to the script you
want to execute - apache will not search down through the directory
structure looking for it.

So if you have:

	ScriptAlias /cgi  /usr/local/www/mycgi

and you have a script at

	/usr/local/www/mycgi/dir1/dir2/prog.cgi

this script will be declared as a CGI, but you must type:

	http://server-name/cgi/dir1/dir2/prog.cgi

to execute it.

i.e. http://server-name/cgi/prog.cgi won't work...

Rgds,

Owen Boyle.

PS it is conventional to call a cgi directory "cgi" or "cgi-bin" -
"mydir" is a bit funny-looking...

---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org