Your message dated Wed, 12 Dec 2018 23:44:42 -0500 with message-id <20181213044442.GC8691@i5.lan> and subject line 907825-done has caused the Debian Bug report #907825, regarding lighttpd : scripts in /cgi-bin are not executed, Error 404 to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org immediately.) -- 907825: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=907825 Debian Bug Tracking System Contact owner@bugs.debian.org with problems
--- Begin Message ---
- To: submit@bugs.debian.org
- Subject: lighttpd : scripts in /cgi-bin are not executed, Error 404
- From: Andrzej Więckowski <andwiec@gmail.com>
- Date: Sun, 2 Sep 2018 18:30:21 +0200
- Message-id: <CAJsSJ9OrffP6v+6p-byQtpxzDoSAw03y7EN6eQdg61u0Wm+7rQ@mail.gmail.com>
- Reply-to: andwiec@gmail.com
Package:lighttpdVersion:stable,now 1.4.45-1 amd64 [installed]OS : Debian GNU/Linux 9.5 (stretch)I have installed lighttpd, if i do : http://<server-ip>/index.html it is working as expected.Then i have enabled CGI : sudo lighttpd-enable-mod cgii have place a simple "hello.py" (chmod +x) in /usr/lib/cgi-binhttp://<server-ip>/cgi-bin/hello.py gives a 404 Errori have edit the "/etc/lighttpd/conf-enabled/10-cgi.conf" file :# /usr/share/doc/lighttpd/cgi.txtserver.modules += ( "mod_cgi" )$HTTP["url"] =~ "^/cgi-bin/" {alias.url += ( "/cgi-bin/" => "/var/www/cgi-bin" )cgi.assign = (".py" => "/usr/bin/python",)}i have make a directory "cgi-bin" in /var/www and place the hello.py therehttp://<server-ip>/cgi-bin/hello.py gives Error 404Really frustrating, im out of ideas how to solve this.--
--- End Message ---
--- Begin Message ---
- To: 907825-done@bugs.debian.org
- Subject: 907825-done
- From: Glenn Strauss <gs-debian.org@gluelogic.com>
- Date: Wed, 12 Dec 2018 23:44:42 -0500
- Message-id: <20181213044442.GC8691@i5.lan>
Package: lighttpd Version: lighttpd/1.4.45-1 user error Use: alias.url += ( "/cgi-bin/" => "/var/www/cgi-bin/" ) Note the trailing slashes on both pieces of the alias. /var/www/cgi-binhello.py is unlikely to exist, resulting in 404 Not Found, whereas /var/www/cgi-bin/hello.py exists.
--- End Message ---