Re: [WebDNA] lighttpd problem with returnraw http header
This WebDNA talk-list message is from 2018
It keeps the original formatting.
numero = 113980
interpreted = N
texte = 1580> Yeah I know, apache, older versions, etc=E2=80=A6 There are solutions=20> but that does not solve the problem or answer my question.Noah,Any time a person chooses to be a 'pioneer' by doing somethingdifferent from most everyone else -- such as using lighttpd whenpractically everyone else uses apache -- he will also have to findhis own answers and solve his own problems when things don't workthe way he wants or expects them to.You took a first step in this process by asking about yourproblems on a WebDNA talk list. So far you've received a simplesuggestion that would easily resolve all your error page issues(revert back to the previous lighttpd version) but you'reapparently unwilling to consider this option. Nor have yousuggested that you'd be willing to switch to apache where no onecomplains about your issues.Apparently this leaves you with no other alternative than to useWebDNA differently than in the previous version of lighttpd ...and hope that it can produce most of the results you were gettingbefore the upgrade ...> It has all worked fine till lighttpd 1.4.45, now with 1.4.46> something changed: Now it works kinda for 404,301,302. It does> not with 200 (I get 2 headers in the http response, only the> first is used, the second is shown as plain text, but then the> content-length is not correct=E2=80=A6 - idk). Also 401: The server> answers with a 401 but does not deliver my html-error-page but> delivers the standard html =E2=80=9C401 - Unauthorized=E2=80=9D...From your description here it would seem that lighttpd 1.4.46ignores WebDNA when someone is "Unauthorized" to access a page.Instead lighttpd responds directly to the browser with its own 401errors. In this situation the use of WebDNA's ErrorMessages.dbwill not fix the problem because WebDNA is not invoked. So unlessyou can figure out how to configure lighttpd to send theserequests to WebDNA, or modify lighttpd's default Unauthorizederror page to make it respond the way you want, you're stuck withthese 401 errors as they currently exist.The problem you described with two headers in 200 responses may becaused by lighttpd creating one of those headers and WebDNAcreating the other one, or maybe WebDNA is creating both. Eitherway it seems that WebDNA is being invoked on these page requests,which also suggests that you may be able to use WebDNA'spost-processing feature to find and remove the unwanted header.I don't know what "kinda works" means for your 404, 301 and 302pages, but I think you've been given pretty much all the infoyou'll need in order to try to make WebDNA resolve most of yourproblems without reverting to an earlier version of lighttpd orreplacing it with apache.Good luck!Regards,Kenneth GromeWebDNA Solutionshttp://www.webdnasolutions.comWeb Database Systems and Linux Server Administration---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list talk@webdna.usTo unsubscribe, E-mail to: talk-leave@webdna.usarchives: http://www.webdna.us/page.dna?numero=3D55Bug Reporting: support@webdna.us.
Associated Messages, from the most recent to the oldest:
1580> Yeah I know, apache, older versions, etc=E2=80=A6 There are solutions=20> but that does not solve the problem or answer my question.Noah,Any time a person chooses to be a 'pioneer' by doing somethingdifferent from most everyone else -- such as using lighttpd whenpractically everyone else uses apache -- he will also have to findhis own answers and solve his own problems when things don't workthe way he wants or expects them to.You took a first step in this process by asking about yourproblems on a WebDNA
Talk List. So far you've received a simplesuggestion that would easily resolve all your error page issues(revert back to the previous lighttpd version) but you'reapparently unwilling to consider this option. Nor have yousuggested that you'd be willing to switch to apache where no onecomplains about your issues.Apparently this leaves you with no other alternative than to useWebDNA differently than in the previous version of lighttpd ...and hope that it can produce most of the results you were gettingbefore the upgrade ...> It has all worked fine till lighttpd 1.4.45, now with 1.4.46> something changed: Now it works kinda for 404,301,302. It does> not with 200 (I get 2 headers in the http response, only the> first is used, the second is shown as plain text, but then the> content-length is not correct=E2=80=A6 - idk). Also 401: The server> answers with a 401 but does not deliver my html-error-page but> delivers the standard html =E2=80=9C401 - Unauthorized=E2=80=9D...From your description here it would seem that lighttpd 1.4.46ignores WebDNA when someone is "Unauthorized" to access a page.Instead lighttpd responds directly to the browser with its own 401errors. In this situation the use of WebDNA's ErrorMessages.dbwill not fix the problem because WebDNA is not invoked. So unlessyou can figure out how to configure lighttpd to send theserequests to WebDNA, or modify lighttpd's default Unauthorizederror page to make it respond the way you want, you're stuck withthese 401 errors as they currently exist.The problem you described with two headers in 200 responses may becaused by lighttpd creating one of those headers and WebDNAcreating the other one, or maybe WebDNA is creating both. Eitherway it seems that WebDNA is being invoked on these page requests,which also suggests that you may be able to use WebDNA'spost-processing feature to find and remove the unwanted header.I don't know what "kinda works" means for your 404, 301 and 302pages, but I think you've been given pretty much all the infoyou'll need in order to try to make WebDNA resolve most of yourproblems without reverting to an earlier version of lighttpd orreplacing it with apache.Good luck!Regards,Kenneth GromeWebDNA Solutionshttp://www.webdnasolutions.comWeb Database Systems and Linux Server Administration---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list talk@webdna.usTo unsubscribe, E-mail to: talk-leave@webdna.usarchives: http://www.webdna.us/page.dna?numero=3D55Bug Reporting: support@webdna.us.
Kenneth Grome
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Shopping cart problem (2003)
So when do we get something similar? (1998)
Major Security Hole (1998)
Multiple Pulldowns (1997)
Using [showif] within [lineitems] (2000)
show all problem (1997)
Banners and sort of random display (1997)
DomainList (2005)
off topic fetch vs PCS photomaster (1997)
[protect] on NT? (1997)
no serial? (1998)
WebDNA Solutions ... sorry! (1997)
Smart caching problems with 2.1b3? (1997)
SSL problems (1998)
WC 2.0 frames feature (1997)
Been meaning to ask... (1997)
What happened to the archives? (1999)
[WebDNA] .debug file (2009)
Some Questions (1997)
Mac OSX 10.5 with WebSTAR... Webcatalog won't run (2003)