AW: [users@httpd] Execute perl Script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
OK, sorry is my first post.

I changed it, like Joshua said.

I put in the default-server.conf instead of 

ScriptAlias /cgi-bin "/srv/www/cgi-bin/"

<Directory "/srv/www/cgi-bin">
        	AllowOverride None
        	Options +ExecCGI
        	Order allow,deny
        	Allow from all
</Directory>

this

Alias /cgi-bin /srv/www/cgi-bin/

<Directory /srv/www/cgi-bin>
	Options ExecCGI
	SetHandler cgi-script
	DirectoryIndex index.pl
</Directory>

Here is the result what the browser said:

------------------------------------------------------------------------
-------------------------------------------------------

Zugriff verweigert!

Der Zugriff auf das angeforderte Verzeichnis ist nicht möglich. Entweder
ist kein Index-Dokument vorhanden oder das Verzeichnis ist
zugriffsgeschützt.

Sofern Sie dies für eine Fehlfunktion des Servers halten, informieren
Sie bitte den Webmaster hierüber. 

Error 403

------------------------------------------------------------------------
-------------------------------------------------------

Sorry it is german but the most important part, I think, is the Error
403.

And here is the part of the error_log:

[Fri May 20 09:11:54 2005] [error] [client 222.222.222.222] attempt to
invoke directory as script: /srv/www/cgi-bin/

Olli




> -----Ursprüngliche Nachricht-----
> Von: Boyle Owen [mailto:Owen.Boyle@xxxxxxx] 
> Gesendet: Freitag, 20. Mai 2005 09:03
> An: users@xxxxxxxxxxxxxxxx
> Betreff: RE: [users@httpd] Execute perl Script
> 
> 
> 
> 
> > -----Original Message-----
> > From: Oliver Kirchel [mailto:kirchel@xxxxxxxxxxxxxxx]
> > Sent: Freitag, 20. Mai 2005 08:57
> > To: users@xxxxxxxxxxxxxxxx
> > Subject: AW: [users@httpd] Execute perl Script
> > 
> > 
> > Hi,
> > I tried it without ScriptAlias but it doesen't work either. 
> Any other 
> > ideas ?
> 
> Please don't ever say "it doesn't work"... what *exactly* happens:
> 
> - what exactly did you put in the config?
> - what exactly did the browser say? (switch off "friendly" messages)
> - what exactly does it say in the error_log?
> 
> Rgds,
> Owen Boyle
> Disclaimer: Any disclaimer attached to this message may be ignored. 
> 
> 
> > 
> > Olli
> > 
> > > -----Ursprüngliche Nachricht-----
> > > Von: Boyle Owen [mailto:Owen.Boyle@xxxxxxx]
> > > Gesendet: Freitag, 20. Mai 2005 08:39
> > > An: users@xxxxxxxxxxxxxxxx
> > > Betreff: RE: [users@httpd] Execute perl Script
> > > 
> > > 
> > > > -----Original Message-----
> > > > From: Joshua Slive [mailto:jslive@xxxxxxxxx]
> > > > Sent: Donnerstag, 19. Mai 2005 18:40
> > > > To: users@xxxxxxxxxxxxxxxx
> > > > Subject: Re: [users@httpd] Execute perl Script
> > > > 
> > > > 
> > > > On 5/19/05, Boyle Owen <Owen.Boyle@xxxxxxx> wrote:
> > > > > Plain text please...
> > > > > 
> > > > > You have to set DirectoryIndex for the cgi dir as you would
> > > > for any index file in a normal directory, ie:
> > > > > 
> > > > > DirectoryIndex index.pl
> > > > 
> > > > If I remember correctly, that doesn't work in ScriptAliased
> > > > directories.
> > > 
> > > Oops - quite right... I did this once ages ago and forgot
> > > that I wasn't using ScriptAlias...
> > > 
> > > Rgds,
> > > Owen Boyle
> > > Disclaimer: Any disclaimer attached to this message may 
> be ignored.
> > > 
> > > > You need to convert
> > > > 
> > > > ScriptAlias /cgi-bin/ /path/to/cgi-bin/
> > > > to
> > > > Alias /cgi-bin /path/to/cgi-bin
> > > > <Directory /path/to/cgi-bin>
> > > > Options ExecCGI
> > > > SetHandler cgi-script
> > > > DirectoryIndex index.pl
> > > > </Directory>
> > > > 
> > > > 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@xxxxxxxxxxxxxxxx
> > > >    "   from the digest: 
> users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> > > > For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
> > > > 
> > > >
> > >  
> > >  
> > > This message is for the named person's use only. It may
> > > contain confidential, proprietary or legally privileged 
> > > information. No confidentiality or privilege is waived or 
> > > lost by any mistransmission. If you receive this message in 
> > > error, please notify the sender urgently and then immediately 
> > > delete the message and any copies of it from your system. 
> > > Please also immediately destroy any hardcopies of the 
> > > message. You must not, directly or indirectly, use, disclose, 
> > > distribute, print, or copy any part of this message if you 
> > > are not the intended recipient. The sender's company reserves 
> > > the right to monitor all e-mail communications through their 
> > > networks. Any views expressed in this message are those of 
> > > the individual sender, except where the message states 
> > > otherwise and the sender is authorised to state them to be 
> > > the views of the sender's company.
> > > 
> > > 
> > 
> ---------------------------------------------------------------------
> > > 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@xxxxxxxxxxxxxxxx
> > >    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> > > For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
> > > 
> > > 
> > 
> > 
> > 
> ---------------------------------------------------------------------
> > 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@xxxxxxxxxxxxxxxx
> >    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> > For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
> > 
> > 
> 
> ---------------------------------------------------------------------
> 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@xxxxxxxxxxxxxxxx
>    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
> 
> 


---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux