You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by cs...@fx.ro on 2003/06/25 13:56:42 UTC
RE: [users@httpd] Bug in apache (was: upgrading to apache2 madeperl-cgi not work :()
Hi again,
Cronologically I tried the following:
I added this section in my config:
<Directory /testCgi>
AddHandler cgi-script .cgi .pl
Options ExecCGI
</Directory>
It didn't work and I sent you that email to you telling that I have same
problems.
Then I moved the AddHandler directive out of VH, into the global server
config, leaving the rest intact.
Still didn't work.
Then I removed the dots in extensions (in global config), and I received the
following error in logs:
Options ExecCGI is off in this directory:
/usr/local/apache2/htdocs/testCgi/test.cgi
Therefore I suspected I should add the full path to directory and did it:
...
AddHandler cgi-script cgi pl
....
<Directory /usr/local/apache2/htdocs/testCgi>
Options ExecCGI
</Directory>
...
It started to work.
Finally, I put the AddHandler into <VH> and still works.
If I remove alternatively cgi and pl, in each case its working OK for the
one still present, So I assume that this is the right config now. If I
remove both extensions, I get the behaviour from the beginning.
But now it's working with the dots too! Whatta heck?!? Maybe in my case was
just a matter of <Directory > not accepting relative paths...
You could try the "SetHandler cgi-script" in that directory to see what's
new. Also check your paths 8-(
Lian
> -----Original Message-----
> From: Klavs Klavsen [mailto:kl@vsen.dk]
> Sent: Wednesday, June 25, 2003 2:07 PM
> To: users@httpd.apache.org
> Subject: RE: [users@httpd] Bug in apache (was: upgrading to apache2
> madeperl-cgi not work :()
>
>
> On ons, 2003-06-25 at 10:47, csebe@fx.ro wrote:
> > You won't believe how simple the solution is. Remove the dots from the
> > extensions, like:
> >
> > AddHandler cgi-script cgi pl
> >
> > Which, BTW, is not according to the docs from mod_mime:
> > "The extension argument is case-insensitive, and can be
> specified with or
> > without a leading dot."
> >
> > Maybe someone should be announced to change the docs (or the
> mod_mime)?!?
> >
> That didn't fix it in my case :(
>
> Sure you didn't fiddle with something else too, which actually did the
> trick? an easy way to find out is to try and set it to .cgi and .pl
> again and see if it still works :)
> --
> Regards,
> Klavs Klavsen, GSEC - kl@vsen.dk - http://www.vsen.dk
> PGP: 7E063C62/2873 188C 968E 600D D8F8 B8DA 3D3A 0B79 7E06 3C62
>
> Working with Unix is like wrestling a worthy opponent.
> Working with windows is like attacking a small whining child
> who is carrying a .38.
>
>
>
> ---------------------------------------------------------------------
> 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
>
---------------------------------------------------------------------
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] Bug in apache (was: upgrading to apache2 madeperl-cgi not work :()
Posted by cs...@fx.ro.
This was my point too (maybe my English didn't help me).
I realized the whole work I've done is irrelevant because of the fact I
assumed <Directory> accepts relative paths (and it doesn't), therefore all
tests resulting in the same situation as the OP, were useless.
Therefore, I shut-up :-|
Lian
> -----Original Message-----
> From: Robert Andersson [mailto:robert@profundis.nu]
> Sent: Thursday, June 26, 2003 11:28 AM
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] Bug in apache (was: upgrading to apache2
> madeperl-cgi not work :()
>
>
> csebe@fx.ro wrote:
> > But now it's working with the dots too! Whatta heck?!? Maybe in my case
> > was just a matter of <Directory > not accepting relative paths...
>
> Just maybe it was. AFAIK, the argument to Directory cannot be relative.
>
> >From http://httpd.apache.org/docs-2.0/mod/core.html#directory
>
> "Directory-path is either the full path to a directory, or a wild-card
> string using Unix shell-style matching."
>
> Regards,
> Robert Andersson
>
>
> ---------------------------------------------------------------------
> 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
>
---------------------------------------------------------------------
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] Bug in apache (was: upgrading to apache2 madeperl-cgi not work :()
Posted by Robert Andersson <ro...@profundis.nu>.
csebe@fx.ro wrote:
> But now it's working with the dots too! Whatta heck?!? Maybe in my case
> was just a matter of <Directory > not accepting relative paths...
Just maybe it was. AFAIK, the argument to Directory cannot be relative.
>From http://httpd.apache.org/docs-2.0/mod/core.html#directory
"Directory-path is either the full path to a directory, or a wild-card
string using Unix shell-style matching."
Regards,
Robert Andersson
---------------------------------------------------------------------
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] Bug in apache (was: upgrading to apache2
madeperl-cgi not work :()
Posted by Klavs Klavsen <kl...@vsen.dk>.
I'm really crying my eyes out here.
What has changed from apache-1.3.x config worked to 2.0.x - that should
make this not work anymore?
I'm using full path, as you can see in the vhost I posted earlier:
<VirtualHost x.x.x.x>
ServerName sql-ledger.domain.dk
DocumentRoot /usr/local/sql-ledger/
#DirectoryIndex index.html
AddHandler cgi-script .pl
#ScriptAlias /sql-ledger/ /usr/local/sql-ledger/
Alias /sql-ledger/ /usr/local/sql-ledger/
<Directory /usr/local/sql-ledger>
Options ExecCGI Includes FollowSymlinks
</Directory>
<Directory /usr/local/sql-ledger/users>
Options None
</Directory>
</VirtualHost>
Nobody has any ideas?
It seems like a bug to me? I tried to add SetHandler cgi-script to the
virtualhost but no dice :(
--
Regards,
Klavs Klavsen, GSEC - kl@vsen.dk - http://www.vsen.dk
PGP: 7E063C62/2873 188C 968E 600D D8F8 B8DA 3D3A 0B79 7E06 3C62
Working with Unix is like wrestling a worthy opponent.
Working with windows is like attacking a small whining child
who is carrying a .38.