You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Harald Wopenka <hw...@spar.at> on 2003/01/16 10:05:34 UTC

[users@httpd] .htaccess => .cgi => forbidden

Hi all!
What do I have to put into my .htaccess to make apache running my .cgi
(perl-scripts) outside cgi-bin? At the moment I get "Forbidden" when I
browse to a .cgi...
Thanks in advance,
Harry
PS: I don't have access to httpd.conf


---------------------------------------------------------------------
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] .htaccess => .cgi => forbidden

Posted by Gary Turner <kk...@sbcglobal.net>.
Harald Wopenka wrote:

>Well, I tried it. Same thing: Internal Server Error.
>

So, what exactly is the error message in error.log?

<snip>
--
gt                  kk5st@sbcglobal.net
 If someone tells you---
 "I have a sense of humor, but that's not funny." 
                                  ---they don't.

---------------------------------------------------------------------
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] .htaccess => .cgi => forbidden

Posted by Zac Stevens <zt...@cryptocracy.com>.
On Fri, Jan 17, 2003 at 10:53:22AM +0100, Harald Wopenka wrote:
> Well, I tried it. Same thing: Internal Server Error.
> 
> Redirect index.html /cgi-bin/go.pl
> 
> looks fine, but doesn't work.
> 
> My Perl-Skript is also fine. If I call it directly
> http://..../cgi-bin/go.pl it functions as expected.

Internal Server Error commonly is caused by an invalid script or
interpreter line, but will be reported on any error which renders Apache
unable to handle the request.  An invalid entry in a .htaccess file, for
example, can be responsible.

Reading the documentation, I would suggest that the first argument to
Redirect needs to be a URI.  Try:

Redirect /index.html /cgi-bin/go.pl

> Hmmm, the only thing which seems to work (partially) is DirectoryIndex which
> unfortunatly affects all the subdirs :(

This is by design - .htaccess is merged with the main configuration, so any
subdirectories pick up the options unless overridden.  Imagine how complex
server config would be if you needed to individually specify options for
every single directory on your system!

I believe you mentioned that you do not have access to the server config,
but do you have access to the error logs?  These may contain information
indicating the specific cause of the error in your case.

You could try setting a DirectoryIndex which first checked for index.html,
index.htm, etc - with your CGI as a final entry.  That way, if a directory
has a real index file it will be loaded, but if not your CGI will be
loaded.  Note that taking this route will mean that an index file will
always be found for a given directory which will preclude the use of
server-generated directory listings.

You could also just put a .htaccess file in each subdir to change
DirectoryIndex back to something which does not include your CGI.  This
will quickly become unmanageable if you have many subdirs, however.

In your particular case, using Redirect as described above is probably the
simplest way of solving the problem.

Hope that helps,


Zac

---------------------------------------------------------------------
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] .htaccess => .cgi => forbidden

Posted by Harald Wopenka <hw...@spar.at>.
Well, I tried it. Same thing: Internal Server Error.

Redirect index.html /cgi-bin/go.pl

looks fine, but doesn't work.

My Perl-Skript is also fine. If I call it directly
http://..../cgi-bin/go.pl it functions as expected.

Hmmm, the only thing which seems to work (partially) is DirectoryIndex which
unfortunatly affects all the subdirs :(

Harry

----- Original Message -----
From: "Gary Turner" <kk...@sbcglobal.net>
To: <us...@httpd.apache.org>
Sent: Friday, January 17, 2003 2:58 AM
Subject: Re: [users@httpd] .htaccess => .cgi => forbidden


> Jeff Cohen wrote:
>
> >Internal Server Error means: change the shebang (the first line in the
> >script) to the correct perl executable file path.
> ...
>
> More generally, any error in the script will cause this error message.
>
> >> From: Harald Wopenka [mailto:hwopenka@spar.at]
> <snip>
> >>
> >> Options ExecCGI
> >> AllowOverride Options
> >>
> >> or
> >>
> >> Options ExecCGI
> >> AllowOverride All
> >>
> >> Both brought up an "Internal Server Error". :(
>
> --
> gt                  kk5st@sbcglobal.net
>  If someone tells you---
>  "I have a sense of humor, but that's not funny."
>                                   ---they don't.
>
> ---------------------------------------------------------------------
> 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] .htaccess => .cgi => forbidden

Posted by Gary Turner <kk...@sbcglobal.net>.
Jeff Cohen wrote:

>Internal Server Error means: change the shebang (the first line in the
>script) to the correct perl executable file path.
...

More generally, any error in the script will cause this error message.

>> From: Harald Wopenka [mailto:hwopenka@spar.at]
<snip>
>> 
>> Options ExecCGI
>> AllowOverride Options
>> 
>> or
>> 
>> Options ExecCGI
>> AllowOverride All
>> 
>> Both brought up an "Internal Server Error". :(

--
gt                  kk5st@sbcglobal.net
 If someone tells you---
 "I have a sense of humor, but that's not funny." 
                                  ---they don't.

---------------------------------------------------------------------
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] .htaccess => .cgi => forbidden / START-CGI

Posted by Jeff Cohen <ap...@gej-it.com>.
That's right! Try redirecting:
Redirect index.html /cgi-bin/go.pl
How about that??

All the best,
Jeff Cohen

> -----Original Message-----
> From: Jurgen [mailto:apache@squarehosting.com]
> Sent: Thursday, January 16, 2003 11:58 AM
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] .htaccess => .cgi => forbidden / START-CGI
> 
> Hi,
> 
> how about redirecting?
> 
> Jurgen
> 
> On Thu, 16 Jan 2003 13:47:56 +0100
> "Harald Wopenka" <hw...@spar.at> wrote:
> 
> > Yeah, I guess so.
> >
> > But maybe you can help me with a workaround. - My initial wish is to
> start a
> > cgi-script instead of the index.html when someone accesses my site. On
> > another Server, where I am able to edit httpd.conf I simply added
> index.cgi
> > to the directory-index and added the needed parameters.
> >
> > I tried to use DirectoryIndex /cgi-bin/go.pl - which worked fine, but
> did
> > also change the behavior with subdirs.
> >
> > When I access www.mypage.xxx it startet my go.pl - when I access
> > www.mypage.xxx/subdir it does also start go.pl and passes /subdir/
> through a
> > variable to it. I'm a bit confused because there is no .htaccess in
> subdir.
> > In my opinion it should present www.mypage.xxx/subdir/index.html.
> >
> > All I need is to call a cgi-script when someone browses to my rootpage.
> > Other subdirs should not be affected. There must be a way through
> .htaccess
> >
> > Thanks in advance
> > Harry
> >
> >
> >
> > ----- Original Message -----
> > From: "Jurgen" <ap...@squarehosting.com>
> > To: <us...@httpd.apache.org>
> > Sent: Thursday, January 16, 2003 11:57 AM
> > Subject: Re: [users@httpd] .htaccess => .cgi => forbidden
> >
> >
> > > Hi,
> > >
> > > it is not because of the cgi file. It is because the directory you
> place
> > the cgi file in isn't allowed to execute cgi scripts. Options ExecCGI in
> > .htaccess can change that, but it has to be permitted from httpd.conf.
> So I
> > guess it is not.
> > >
> > > Jurgen
> > >
> > >
> > > On Thu, 16 Jan 2003 11:36:52 +0100
> > > "Harald Wopenka" <hw...@spar.at> wrote:
> > >
> > > > Re,
> > > >
> > > > where else should I put it? "Options ExecCGI" alone does not work -
> and
> > I've
> > > > no access to httpd.conf. My only possibility is to use .htaccess. I
> have
> > > > kind of a feeling that my provider does not allow me to do this.
> > > > .htaccess-Files work in general - maybe he just prohibits .cgi-
> Files. Is
> > > > this possible?
> > > >
> > > > Harry
> > > >
> > > >
> > > > ----- Original Message -----
> > > > From: "Jurgen" <ap...@squarehosting.com>
> > > > To: <us...@httpd.apache.org>
> > > > Sent: Thursday, January 16, 2003 11:40 AM
> > > > Subject: Re: [users@httpd] .htaccess => .cgi => forbidden
> > > >
> > > >
> > > > > Hi,
> > > > >
> > > > > don't put the "AllowOverride" in .htaccess.
> > > > >
> > > > > Jurgen
> > > > >
> > > > >
> > > > > On Thu, 16 Jan 2003 11:29:51 +0100
> > > > > "Harald Wopenka" <hw...@spar.at> wrote:
> > > > >
> > > > > > Hi,
> > > > > >
> > > > > > thanks, - but it didn't work.
> > > > > >
> > > > > > Options ExecCGI
> > > > > > AllowOverride Options
> > > > > >
> > > > > > or
> > > > > >
> > > > > > Options ExecCGI
> > > > > > AllowOverride All
> > > > > >
> > > > > > Both brought up an "Internal Server Error". :(
> > > > > >
> > > > > > Harry
> > > > > >
> > > > > > ----- Original Message -----
> > > > > > From: "Jurgen" <ap...@squarehosting.com>
> > > > > > To: <us...@httpd.apache.org>
> > > > > > Sent: Thursday, January 16, 2003 11:05 AM
> > > > > > Subject: Re: [users@httpd] .htaccess => .cgi => forbidden
> > > > > >
> > > > > >
> > > > > > > Hi,
> > > > > > >
> > > > > > > place
> > > > > > > Options ExecCGI
> > > > > > > into the .htaccess file. If it still doesn't work you need
> > > > AllowOverride
> > > > > > Options in the virtualhost configuration.
> > > > > > >
> > > > > > > Jurgen
> > > > > > >
> > > > > > >
> > > > > > > On Thu, 16 Jan 2003 10:05:34 +0100
> > > > > > > "Harald Wopenka" <hw...@spar.at> wrote:
> > > > > > >
> > > > > > > > Hi all!
> > > > > > > > What do I have to put into my .htaccess to make apache
> running
> > my
> > > > .cgi
> > > > > > > > (perl-scripts) outside cgi-bin? At the moment I get
> "Forbidden"
> > when
> > > > I
> > > > > > > > browse to a .cgi...
> > > > > > > > Thanks in advance,
> > > > > > > > Harry
> > > > > > > > PS: I don't have access to httpd.conf
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > ------------------------------------------------------------------
> ---
> > > > > > > > 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
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > ---------------------------------------------------------------------
> > > > > > 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
> > > > >
> > > >
> > > >
> > > > --------------------------------------------------------------------
> -
> > > > 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
> > >
> >
> >
> > ---------------------------------------------------------------------
> > 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


---------------------------------------------------------------------
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] .htaccess => .cgi => forbidden / START-CGI

Posted by Jurgen <ap...@squarehosting.com>.
Hi,

how about redirecting?

Jurgen

On Thu, 16 Jan 2003 13:47:56 +0100
"Harald Wopenka" <hw...@spar.at> wrote:

> Yeah, I guess so.
> 
> But maybe you can help me with a workaround. - My initial wish is to start a
> cgi-script instead of the index.html when someone accesses my site. On
> another Server, where I am able to edit httpd.conf I simply added index.cgi
> to the directory-index and added the needed parameters.
> 
> I tried to use DirectoryIndex /cgi-bin/go.pl - which worked fine, but did
> also change the behavior with subdirs.
> 
> When I access www.mypage.xxx it startet my go.pl - when I access
> www.mypage.xxx/subdir it does also start go.pl and passes /subdir/ through a
> variable to it. I'm a bit confused because there is no .htaccess in subdir.
> In my opinion it should present www.mypage.xxx/subdir/index.html.
> 
> All I need is to call a cgi-script when someone browses to my rootpage.
> Other subdirs should not be affected. There must be a way through .htaccess
> 
> Thanks in advance
> Harry
> 
> 
> 
> ----- Original Message -----
> From: "Jurgen" <ap...@squarehosting.com>
> To: <us...@httpd.apache.org>
> Sent: Thursday, January 16, 2003 11:57 AM
> Subject: Re: [users@httpd] .htaccess => .cgi => forbidden
> 
> 
> > Hi,
> >
> > it is not because of the cgi file. It is because the directory you place
> the cgi file in isn't allowed to execute cgi scripts. Options ExecCGI in
> .htaccess can change that, but it has to be permitted from httpd.conf. So I
> guess it is not.
> >
> > Jurgen
> >
> >
> > On Thu, 16 Jan 2003 11:36:52 +0100
> > "Harald Wopenka" <hw...@spar.at> wrote:
> >
> > > Re,
> > >
> > > where else should I put it? "Options ExecCGI" alone does not work - and
> I've
> > > no access to httpd.conf. My only possibility is to use .htaccess. I have
> > > kind of a feeling that my provider does not allow me to do this.
> > > .htaccess-Files work in general - maybe he just prohibits .cgi-Files. Is
> > > this possible?
> > >
> > > Harry
> > >
> > >
> > > ----- Original Message -----
> > > From: "Jurgen" <ap...@squarehosting.com>
> > > To: <us...@httpd.apache.org>
> > > Sent: Thursday, January 16, 2003 11:40 AM
> > > Subject: Re: [users@httpd] .htaccess => .cgi => forbidden
> > >
> > >
> > > > Hi,
> > > >
> > > > don't put the "AllowOverride" in .htaccess.
> > > >
> > > > Jurgen
> > > >
> > > >
> > > > On Thu, 16 Jan 2003 11:29:51 +0100
> > > > "Harald Wopenka" <hw...@spar.at> wrote:
> > > >
> > > > > Hi,
> > > > >
> > > > > thanks, - but it didn't work.
> > > > >
> > > > > Options ExecCGI
> > > > > AllowOverride Options
> > > > >
> > > > > or
> > > > >
> > > > > Options ExecCGI
> > > > > AllowOverride All
> > > > >
> > > > > Both brought up an "Internal Server Error". :(
> > > > >
> > > > > Harry
> > > > >
> > > > > ----- Original Message -----
> > > > > From: "Jurgen" <ap...@squarehosting.com>
> > > > > To: <us...@httpd.apache.org>
> > > > > Sent: Thursday, January 16, 2003 11:05 AM
> > > > > Subject: Re: [users@httpd] .htaccess => .cgi => forbidden
> > > > >
> > > > >
> > > > > > Hi,
> > > > > >
> > > > > > place
> > > > > > Options ExecCGI
> > > > > > into the .htaccess file. If it still doesn't work you need
> > > AllowOverride
> > > > > Options in the virtualhost configuration.
> > > > > >
> > > > > > Jurgen
> > > > > >
> > > > > >
> > > > > > On Thu, 16 Jan 2003 10:05:34 +0100
> > > > > > "Harald Wopenka" <hw...@spar.at> wrote:
> > > > > >
> > > > > > > Hi all!
> > > > > > > What do I have to put into my .htaccess to make apache running
> my
> > > .cgi
> > > > > > > (perl-scripts) outside cgi-bin? At the moment I get "Forbidden"
> when
> > > I
> > > > > > > browse to a .cgi...
> > > > > > > Thanks in advance,
> > > > > > > Harry
> > > > > > > PS: I don't have access to httpd.conf
> > > > > > >
> > > > > > >
> > > > > >
> > > > ---------------------------------------------------------------------
> > > > > > > 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
> > > > > >
> > > > >
> > > > >
> > > >
> > ---------------------------------------------------------------------
> > > > > 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
> > > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > 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
> >
> 
> 
> ---------------------------------------------------------------------
> 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] .htaccess => .cgi => forbidden / START-CGI

Posted by Harald Wopenka <hw...@spar.at>.
Yeah, I guess so.

But maybe you can help me with a workaround. - My initial wish is to start a
cgi-script instead of the index.html when someone accesses my site. On
another Server, where I am able to edit httpd.conf I simply added index.cgi
to the directory-index and added the needed parameters.

I tried to use DirectoryIndex /cgi-bin/go.pl - which worked fine, but did
also change the behavior with subdirs.

When I access www.mypage.xxx it startet my go.pl - when I access
www.mypage.xxx/subdir it does also start go.pl and passes /subdir/ through a
variable to it. I'm a bit confused because there is no .htaccess in subdir.
In my opinion it should present www.mypage.xxx/subdir/index.html.

All I need is to call a cgi-script when someone browses to my rootpage.
Other subdirs should not be affected. There must be a way through .htaccess

Thanks in advance
Harry



----- Original Message -----
From: "Jurgen" <ap...@squarehosting.com>
To: <us...@httpd.apache.org>
Sent: Thursday, January 16, 2003 11:57 AM
Subject: Re: [users@httpd] .htaccess => .cgi => forbidden


> Hi,
>
> it is not because of the cgi file. It is because the directory you place
the cgi file in isn't allowed to execute cgi scripts. Options ExecCGI in
.htaccess can change that, but it has to be permitted from httpd.conf. So I
guess it is not.
>
> Jurgen
>
>
> On Thu, 16 Jan 2003 11:36:52 +0100
> "Harald Wopenka" <hw...@spar.at> wrote:
>
> > Re,
> >
> > where else should I put it? "Options ExecCGI" alone does not work - and
I've
> > no access to httpd.conf. My only possibility is to use .htaccess. I have
> > kind of a feeling that my provider does not allow me to do this.
> > .htaccess-Files work in general - maybe he just prohibits .cgi-Files. Is
> > this possible?
> >
> > Harry
> >
> >
> > ----- Original Message -----
> > From: "Jurgen" <ap...@squarehosting.com>
> > To: <us...@httpd.apache.org>
> > Sent: Thursday, January 16, 2003 11:40 AM
> > Subject: Re: [users@httpd] .htaccess => .cgi => forbidden
> >
> >
> > > Hi,
> > >
> > > don't put the "AllowOverride" in .htaccess.
> > >
> > > Jurgen
> > >
> > >
> > > On Thu, 16 Jan 2003 11:29:51 +0100
> > > "Harald Wopenka" <hw...@spar.at> wrote:
> > >
> > > > Hi,
> > > >
> > > > thanks, - but it didn't work.
> > > >
> > > > Options ExecCGI
> > > > AllowOverride Options
> > > >
> > > > or
> > > >
> > > > Options ExecCGI
> > > > AllowOverride All
> > > >
> > > > Both brought up an "Internal Server Error". :(
> > > >
> > > > Harry
> > > >
> > > > ----- Original Message -----
> > > > From: "Jurgen" <ap...@squarehosting.com>
> > > > To: <us...@httpd.apache.org>
> > > > Sent: Thursday, January 16, 2003 11:05 AM
> > > > Subject: Re: [users@httpd] .htaccess => .cgi => forbidden
> > > >
> > > >
> > > > > Hi,
> > > > >
> > > > > place
> > > > > Options ExecCGI
> > > > > into the .htaccess file. If it still doesn't work you need
> > AllowOverride
> > > > Options in the virtualhost configuration.
> > > > >
> > > > > Jurgen
> > > > >
> > > > >
> > > > > On Thu, 16 Jan 2003 10:05:34 +0100
> > > > > "Harald Wopenka" <hw...@spar.at> wrote:
> > > > >
> > > > > > Hi all!
> > > > > > What do I have to put into my .htaccess to make apache running
my
> > .cgi
> > > > > > (perl-scripts) outside cgi-bin? At the moment I get "Forbidden"
when
> > I
> > > > > > browse to a .cgi...
> > > > > > Thanks in advance,
> > > > > > Harry
> > > > > > PS: I don't have access to httpd.conf
> > > > > >
> > > > > >
> > > > >
> > > ---------------------------------------------------------------------
> > > > > > 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
> > > > >
> > > >
> > > >
> > >
> ---------------------------------------------------------------------
> > > > 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
> > >
> >
> >
> > ---------------------------------------------------------------------
> > 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
>


---------------------------------------------------------------------
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] .htaccess => .cgi => forbidden

Posted by Jurgen <ap...@squarehosting.com>.
Hi,

it is not because of the cgi file. It is because the directory you place the cgi file in isn't allowed to execute cgi scripts. Options ExecCGI in .htaccess can change that, but it has to be permitted from httpd.conf. So I guess it is not.

Jurgen


On Thu, 16 Jan 2003 11:36:52 +0100
"Harald Wopenka" <hw...@spar.at> wrote:

> Re,
> 
> where else should I put it? "Options ExecCGI" alone does not work - and I've
> no access to httpd.conf. My only possibility is to use .htaccess. I have
> kind of a feeling that my provider does not allow me to do this.
> .htaccess-Files work in general - maybe he just prohibits .cgi-Files. Is
> this possible?
> 
> Harry
> 
> 
> ----- Original Message -----
> From: "Jurgen" <ap...@squarehosting.com>
> To: <us...@httpd.apache.org>
> Sent: Thursday, January 16, 2003 11:40 AM
> Subject: Re: [users@httpd] .htaccess => .cgi => forbidden
> 
> 
> > Hi,
> >
> > don't put the "AllowOverride" in .htaccess.
> >
> > Jurgen
> >
> >
> > On Thu, 16 Jan 2003 11:29:51 +0100
> > "Harald Wopenka" <hw...@spar.at> wrote:
> >
> > > Hi,
> > >
> > > thanks, - but it didn't work.
> > >
> > > Options ExecCGI
> > > AllowOverride Options
> > >
> > > or
> > >
> > > Options ExecCGI
> > > AllowOverride All
> > >
> > > Both brought up an "Internal Server Error". :(
> > >
> > > Harry
> > >
> > > ----- Original Message -----
> > > From: "Jurgen" <ap...@squarehosting.com>
> > > To: <us...@httpd.apache.org>
> > > Sent: Thursday, January 16, 2003 11:05 AM
> > > Subject: Re: [users@httpd] .htaccess => .cgi => forbidden
> > >
> > >
> > > > Hi,
> > > >
> > > > place
> > > > Options ExecCGI
> > > > into the .htaccess file. If it still doesn't work you need
> AllowOverride
> > > Options in the virtualhost configuration.
> > > >
> > > > Jurgen
> > > >
> > > >
> > > > On Thu, 16 Jan 2003 10:05:34 +0100
> > > > "Harald Wopenka" <hw...@spar.at> wrote:
> > > >
> > > > > Hi all!
> > > > > What do I have to put into my .htaccess to make apache running my
> .cgi
> > > > > (perl-scripts) outside cgi-bin? At the moment I get "Forbidden" when
> I
> > > > > browse to a .cgi...
> > > > > Thanks in advance,
> > > > > Harry
> > > > > PS: I don't have access to httpd.conf
> > > > >
> > > > >
> > > >
> > ---------------------------------------------------------------------
> > > > > 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
> > > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > 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
> >
> 
> 
> ---------------------------------------------------------------------
> 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] .htaccess => .cgi => forbidden

Posted by Harald Wopenka <hw...@spar.at>.
Re,

where else should I put it? "Options ExecCGI" alone does not work - and I've
no access to httpd.conf. My only possibility is to use .htaccess. I have
kind of a feeling that my provider does not allow me to do this.
.htaccess-Files work in general - maybe he just prohibits .cgi-Files. Is
this possible?

Harry


----- Original Message -----
From: "Jurgen" <ap...@squarehosting.com>
To: <us...@httpd.apache.org>
Sent: Thursday, January 16, 2003 11:40 AM
Subject: Re: [users@httpd] .htaccess => .cgi => forbidden


> Hi,
>
> don't put the "AllowOverride" in .htaccess.
>
> Jurgen
>
>
> On Thu, 16 Jan 2003 11:29:51 +0100
> "Harald Wopenka" <hw...@spar.at> wrote:
>
> > Hi,
> >
> > thanks, - but it didn't work.
> >
> > Options ExecCGI
> > AllowOverride Options
> >
> > or
> >
> > Options ExecCGI
> > AllowOverride All
> >
> > Both brought up an "Internal Server Error". :(
> >
> > Harry
> >
> > ----- Original Message -----
> > From: "Jurgen" <ap...@squarehosting.com>
> > To: <us...@httpd.apache.org>
> > Sent: Thursday, January 16, 2003 11:05 AM
> > Subject: Re: [users@httpd] .htaccess => .cgi => forbidden
> >
> >
> > > Hi,
> > >
> > > place
> > > Options ExecCGI
> > > into the .htaccess file. If it still doesn't work you need
AllowOverride
> > Options in the virtualhost configuration.
> > >
> > > Jurgen
> > >
> > >
> > > On Thu, 16 Jan 2003 10:05:34 +0100
> > > "Harald Wopenka" <hw...@spar.at> wrote:
> > >
> > > > Hi all!
> > > > What do I have to put into my .htaccess to make apache running my
.cgi
> > > > (perl-scripts) outside cgi-bin? At the moment I get "Forbidden" when
I
> > > > browse to a .cgi...
> > > > Thanks in advance,
> > > > Harry
> > > > PS: I don't have access to httpd.conf
> > > >
> > > >
> > >
> ---------------------------------------------------------------------
> > > > 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
> > >
> >
> >
> > ---------------------------------------------------------------------
> > 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
>


---------------------------------------------------------------------
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] .htaccess => .cgi => forbidden

Posted by Jurgen <ap...@squarehosting.com>.
Hi,

don't put the "AllowOverride" in .htaccess.

Jurgen


On Thu, 16 Jan 2003 11:29:51 +0100
"Harald Wopenka" <hw...@spar.at> wrote:

> Hi,
> 
> thanks, - but it didn't work.
> 
> Options ExecCGI
> AllowOverride Options
> 
> or
> 
> Options ExecCGI
> AllowOverride All
> 
> Both brought up an "Internal Server Error". :(
> 
> Harry
> 
> ----- Original Message -----
> From: "Jurgen" <ap...@squarehosting.com>
> To: <us...@httpd.apache.org>
> Sent: Thursday, January 16, 2003 11:05 AM
> Subject: Re: [users@httpd] .htaccess => .cgi => forbidden
> 
> 
> > Hi,
> >
> > place
> > Options ExecCGI
> > into the .htaccess file. If it still doesn't work you need AllowOverride
> Options in the virtualhost configuration.
> >
> > Jurgen
> >
> >
> > On Thu, 16 Jan 2003 10:05:34 +0100
> > "Harald Wopenka" <hw...@spar.at> wrote:
> >
> > > Hi all!
> > > What do I have to put into my .htaccess to make apache running my .cgi
> > > (perl-scripts) outside cgi-bin? At the moment I get "Forbidden" when I
> > > browse to a .cgi...
> > > Thanks in advance,
> > > Harry
> > > PS: I don't have access to httpd.conf
> > >
> > >
> > > ---------------------------------------------------------------------
> > > 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
> >
> 
> 
> ---------------------------------------------------------------------
> 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] .htaccess => .cgi => forbidden

Posted by Jeff Cohen <ap...@gej-it.com>.
Internal Server Error means: change the shebang (the first line in the
script) to the correct perl executable file path.
If you don't know your path then ask your provider.

All the best,
Jeff Cohen

> -----Original Message-----
> From: Harald Wopenka [mailto:hwopenka@spar.at]
> Sent: Thursday, January 16, 2003 5:30 AM
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] .htaccess => .cgi => forbidden
> 
> Hi,
> 
> thanks, - but it didn't work.
> 
> Options ExecCGI
> AllowOverride Options
> 
> or
> 
> Options ExecCGI
> AllowOverride All
> 
> Both brought up an "Internal Server Error". :(
> 
> Harry
> 
> ----- Original Message -----
> From: "Jurgen" <ap...@squarehosting.com>
> To: <us...@httpd.apache.org>
> Sent: Thursday, January 16, 2003 11:05 AM
> Subject: Re: [users@httpd] .htaccess => .cgi => forbidden
> 
> 
> > Hi,
> >
> > place
> > Options ExecCGI
> > into the .htaccess file. If it still doesn't work you need AllowOverride
> Options in the virtualhost configuration.
> >
> > Jurgen
> >
> >
> > On Thu, 16 Jan 2003 10:05:34 +0100
> > "Harald Wopenka" <hw...@spar.at> wrote:
> >
> > > Hi all!
> > > What do I have to put into my .htaccess to make apache running my .cgi
> > > (perl-scripts) outside cgi-bin? At the moment I get "Forbidden" when I
> > > browse to a .cgi...
> > > Thanks in advance,
> > > Harry
> > > PS: I don't have access to httpd.conf
> > >
> > >
> > > ---------------------------------------------------------------------
> > > 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
> >
> 
> 
> ---------------------------------------------------------------------
> 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] .htaccess => .cgi => forbidden

Posted by Harald Wopenka <hw...@spar.at>.
Hi,

thanks, - but it didn't work.

Options ExecCGI
AllowOverride Options

or

Options ExecCGI
AllowOverride All

Both brought up an "Internal Server Error". :(

Harry

----- Original Message -----
From: "Jurgen" <ap...@squarehosting.com>
To: <us...@httpd.apache.org>
Sent: Thursday, January 16, 2003 11:05 AM
Subject: Re: [users@httpd] .htaccess => .cgi => forbidden


> Hi,
>
> place
> Options ExecCGI
> into the .htaccess file. If it still doesn't work you need AllowOverride
Options in the virtualhost configuration.
>
> Jurgen
>
>
> On Thu, 16 Jan 2003 10:05:34 +0100
> "Harald Wopenka" <hw...@spar.at> wrote:
>
> > Hi all!
> > What do I have to put into my .htaccess to make apache running my .cgi
> > (perl-scripts) outside cgi-bin? At the moment I get "Forbidden" when I
> > browse to a .cgi...
> > Thanks in advance,
> > Harry
> > PS: I don't have access to httpd.conf
> >
> >
> > ---------------------------------------------------------------------
> > 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
>


---------------------------------------------------------------------
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] .htaccess => .cgi => forbidden

Posted by Jurgen <ap...@squarehosting.com>.
Hi,

place
Options ExecCGI
into the .htaccess file. If it still doesn't work you need AllowOverride Options in the virtualhost configuration.

Jurgen


On Thu, 16 Jan 2003 10:05:34 +0100
"Harald Wopenka" <hw...@spar.at> wrote:

> Hi all!
> What do I have to put into my .htaccess to make apache running my .cgi
> (perl-scripts) outside cgi-bin? At the moment I get "Forbidden" when I
> browse to a .cgi...
> Thanks in advance,
> Harry
> PS: I don't have access to httpd.conf
> 
> 
> ---------------------------------------------------------------------
> 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