AW: [users@httpd] Execute perl Script

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

 



Hi,
I did it, but it doesn't work.

Here a part of my conf-Files:

httpd.conf

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

<Directory />
    Options None
    AllowOverride None
    Order deny,allow
    Deny from all
</Directory>

<Files index*.pl>
    Options +ExecCGI
    SetHandler cgi-script
</Files>

DirectoryIndex index.pl index.html index.html.var

-------------------------------------------------------------------
With this it's working fine when I type http://222.222.222.222/

But for me it's important that it works in the cgi-bin directory.

Here my entries in the default-server.conf:

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

<Directory "/srv/www/htdocs">
   Options None
   AllowOverride None
   Allow from all
</Directory>

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

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

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

If I type http://222.222.222.222/cgi-bin/ I get the error below.

What I have to change or add ?


> -----Ursprüngliche Nachricht-----
> Von: Boyle Owen [mailto:Owen.Boyle@xxxxxxx] 
> Gesendet: Donnerstag, 19. Mai 2005 11:57
> An: users@xxxxxxxxxxxxxxxx
> Betreff: RE: [users@httpd] Execute perl Script
> 
> 
> 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
> 
> Rgds,
> Owen Boyle
> Disclaimer: Any disclaimer attached to this message may be ignored. 
> 
> 
> -----Original Message-----
> From: Oliver Kirchel [mailto:kirchel@xxxxxxxxxxxxxxx]
> Sent: Donnerstag, 19. Mai 2005 10:34
> To: users@xxxxxxxxxxxxxxxx
> Subject: [users@httpd] Execute perl Script
> 
> 
> Hi,
> I'm running Apache/2.0.53 on a Linux System.
> My problem is that I want to execute a perl-script with the 
> name index.pl
> 
> If I type the URL f.e.: 
> http://222.222.222.222/cgi-bin/index.pl everything is > fine.
> 
> 
> But if I type http://222.222.222.222/cgi-bin/ I get the 
> following error in the error-log.
> 
> [Thu May 19 10:27:16 2005] [error] [client 222.222.222.222] 
> attempt to invoke directory as script: /srv/www/cgi-bin/
> 
> What I have to change in the httpd.conf or in the 
> default-server.conf ?
> 
> Many greetings
> Olli
> 
> Diese E-mail ist eine private und persönliche Kommunikation. 
> Sie hat keinen Bezug zur Börsen- bzw. Geschäftstätigkeit der 
> SWX Gruppe. This e-mail is of a private and personal nature. 
> It is not related to the exchange or business activities of 
> the SWX Group. Le présent e-mail est un message privé et 
> personnel, sans rapport avec l'activité boursière du Groupe SWX.
>  
>  
> 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



[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