Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 143238 - Incorrect CGI path for lighttpd 1.4.11
Summary: Incorrect CGI path for lighttpd 1.4.11
Status: VERIFIED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: www-servers Herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-08 12:33 UTC by Stefán Hafliðason
Modified: 2006-09-29 20:07 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefán Hafliðason 2006-08-08 12:33:55 UTC
On a fresh install of lighttpd 1.4.11, the mod_alias path for the cgi-bin directory appears to be incorrect.

In order to run a simple CGI script in cgi-bin, I needed to change: (in /etc/lighttpd/mod_cgi.conf)

"/cgi-bin/"	    =>	    var.basedir + "/cgi-bin/"

to:

"/cgi-bin/"	    =>	    var.basedir + "/htdocs/cgi-bin/"

With the modified path, the script executes successfully.
Comment 1 Jari-Matti Mäkelä 2006-09-29 05:45:52 UTC
>"/cgi-bin/"         =>      var.basedir + "/htdocs/cgi-bin/"

Are you sure this path is correct? I think both apache and lighttpd use /var/www/cgi-bin/ as a default path on Gentoo when not using vhosts.
Comment 2 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2006-09-29 13:24:05 UTC
did you create the cgi-bin directory yourself?

AFAICT no cgi-bin directory is created by the installation. my guess is, you created a cgi-bin dir inside the htdocs dir expecting lighttpd to find it, while in fact, it belongs on the same level.

can you confirm my observation?
thanks
Comment 3 Stefán Hafliðason 2006-09-29 20:07:32 UTC
I cannot confirm, as I am not at that system. However, having checked the ebuild it appears that you are correct. I will check the ebuild properly next time, my apologies.