In fear of making a fool of myself! Does the presence or absence of trailing forward slashes make a difference? Is: Alias /cgi-bin /srv/www/cgi-bin/ the same as: Alias /cgi-bin/ /srv/www/cgi-bin/ with or without the last forward slash too! Is http://www.yourdomain.com/cgi-bin/ the same as http://www.yourdomain.com/cgi-bin in the browsers address bar depending on what is written in the conf file? > -----Original Message----- > From: Oliver Kirchel [mailto:kirchel@xxxxxxxxxxxxxxx] > Sent: Freitag, 20. Mai 2005 09:25 > To: users@xxxxxxxxxxxxxxxx > Subject: AW: [users@httpd] Execute perl Script > > > Hi, > OK, sorry is my first post. No problem... > > 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> This is OK - although, unless you have an "Allow from" directive higher up the hierarchy, you might still need the "Allow from all" directive in here... > > 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/ This doesn't make sense. - Are you *sure* you got this message *after* you changed the config and restarted apache (you know you must restart apache for config changes to take effect?) - You are sure this message is not an old message from a previous try? The reason I'm so sceptical is that you will only get this message if the directory is covered by a ScriptAlias directive. You can't get this if you're using the new directive set described by Joshua... Do you maybe have a ScriptAlias somewhere else in the config? 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 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 > > --------------------------------------------------------------------- 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