You are not logged in.

#1 2012-07-16 21:19:26

SahuaritaDon
Member
Registered: 2012-07-06
Posts: 5

(SOLVED)cgi wiki install (in Lighttpd document) produces syntax errors

While following the FastCGI install section of http://wiki.archlinux.org/index.php/Lighttpd, I first added the lines to fastcgi.conf then added the include statement to lighttpd.conf. I then tested lighttpd.conf for syntax errors using
   lighttpd -t -f lighttpd.conf
and got the error message:
   "Duplicate config variable in conditional 0 global: index-file.names"

I assume this is because there is index-file.names assignment in both the include section and in the lighttpd.conf body. I tried to fix it by commenting out the one in the include section and changed the one in the body to:

   index-file.names += ( "index.html", "dispatch.fcgi")

This seemed to make the syntax checker happy but I could then no longer connect to lighttpd. What am I doing wrong?

Last edited by SahuaritaDon (2012-07-22 04:58:54)

Offline

#2 2012-07-16 21:40:45

prasinoulhs
Member
From: Greece
Registered: 2011-10-30
Posts: 53

Re: (SOLVED)cgi wiki install (in Lighttpd document) produces syntax errors

Without the actual files it's really hard for anyone to tell what's wrong.

This seemed to make the syntax checker happy but I could then no longer connect to lighttpd. What am I doing wrong?

Do you get any errors? (check the logs)

You don' really have to use a different config file, you can have everything in /etc/lighttpd/lighttpd.conf.

Offline

#3 2012-07-17 15:26:05

SahuaritaDon
Member
Registered: 2012-07-06
Posts: 5

Re: (SOLVED)cgi wiki install (in Lighttpd document) produces syntax errors

Thanks for replying. I will check the error logs later. Right now I am more concerned about errors in the install document http://wiki.archlinux.org/index.php/Lighttpd. In the FastCGI section on page 3 it says to add this line to the fastcgi.conf file:
    index-file.names += ( "dispatch.fcgi" )    #dispatch.fcgi if rails spedified

This conf file is then included in the lighttpd.conf file which already has the line
    index-file.names += ( "index.html" )

This will give an error to anyone who tries to use this install document. I can go into wiki edit and fix it if someone can tell me how it should be.  As an aside, it seems strange to me that the fastcgi.conf file is not a standalone conf file and is instead embedded in lighttpd.conf. Shouldn't the mod_fastcgi server look to it's own conf file? And what about the comment - what has rails got to do with it? I'm hoping some FastCGI guru will look at this and confirm what I am seeing and either correct me or correct the doc.

Last edited by SahuaritaDon (2012-07-17 15:27:35)

Offline

Board footer

Powered by FluxBB