0

CGI scripts worked perfectly, while I was using HTTP. Then I set redirecting for all traffic through https and now CGI doesn't work at all (404 - not found). I use lighttpd server.

Here is the part of lighttpd.conf for redirect:

$SERVER["socket"] == ":80" { $HTTP["host"] =~ "(.*)" { url.redirect = ( "^/(.*)" => "https://%1/$1" ) } } 

EDIT 1: lighttpd.conf (click me)

EDIT 2: mod_fastcgi.conf (click me)

3
  • The redirect looks fine, for everything else you didn't provide enough details. Basically it "should" still work if it worked before. Commented May 14, 2014 at 9:50
  • Could you list also mod_fastcgi.conf ? Commented May 14, 2014 at 19:22
  • Ok, have done it. See edit 2 Commented May 16, 2014 at 18:45

1 Answer 1

0

You need to configure CGI and documentroot for the SSL listener too.

5
  • But everything except cgi works. Commented May 13, 2014 at 18:18
  • I have the following lines in lighttpd.conf: server.port = 443 server.document-root = var.basedir + "/htdocs" Commented May 13, 2014 at 18:20
  • Could you please post the entire config? Commented May 14, 2014 at 13:45
  • Can you also add the relevant section of the lighttpd logs? Commented May 14, 2014 at 13:47
  • I've added config file, see edit 1 Commented May 14, 2014 at 14:55

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.