Project

General

Profile

Lighttpd module example

Added by TCH about 4 years ago

Hello,

I'm looking for a tutorial, how can i write and compile a simple dynamic module for Lighttpd, which can fetch requests and send responses. Is there any?

Thanks in advance.


Replies (13)

RE: Lighttpd module example - Added by gstrauss about 4 years ago

You signed up to create an account to post that question, but you apparently missed the whole "Developing" section on the front page of the wiki.

You're not going to get much help if you do not demonstrate quite a bit more effort.

RE: Lighttpd module example - Added by TCH about 4 years ago

I cannot "demonstrate" more "effort" since i'm at the beginning, trying to start, i have no code yet.
If this is not the place to ask for Lighttpd module development tutorials, then can you tell me please where can i ask questions like this?

RE: Lighttpd module example - Added by gstrauss about 4 years ago

you apparently missed the whole "Developing" section on the front page of the wiki.

RE: Lighttpd module example - Added by TCH about 4 years ago

No i did not. I just thought, if i have a development related question i can ask it in the "developing" section. I saw the "support" section, but "support" usually means "how to operate it", not "how to develop for it". Should i ask this again in the support section?

RE: Lighttpd module example - Added by gstrauss about 4 years ago

I cannot "demonstrate" more "effort" since i'm at the beginning, trying to start, i have no code yet.

I'll try to break it down for you.

Q: What is the first thing I should do?
A: RTFM. There is a "Developing" section on the front page of the wiki. This is the THIRD time you have had to be told this.

Q: Should I ask any more questions before I look at the existing documentation?
A: No.

Q: On what forum will somebody read the documentation to me?
A: None.

Q: Should I ask questions after I look at the existing documentation and should those questions demonstrate that I have looked at and tried to understand the documentation?
A: Yes.

RE: Lighttpd module example - Added by TCH about 4 years ago

RTFM. There is a "Developing" section on the front page of the wiki. This is the THIRD time you have had to be told this.

True. Sorry, i missed the "wiki" word.

I tried to read the docs, but the "server internals" are 404 here:

https://redmine.lighttpd.net/projects/lighttpd/wiki/HowToWriteALighttpdPlugin

Also, the terminology is not clear: is a Lighttpd "plugin" is equivalent of "module" in e.g. Apache or NGINX?

RE: Lighttpd module example - Added by gstrauss about 4 years ago

I fixed the broken links to point to wiki pages.

Do you see the Search box in the upper right of this page? Do you know how to use a Search box on a wiki?

True. Sorry, i missed the "wiki" word.

Please try harder. If you do, I might answer additional questions next week.

RE: Lighttpd module example - Added by TCH about 4 years ago

Do you see the Search box in the upper right of this page? Do you know how to use a Search box on a wiki?

Guess what, i found that link above by using the search box, before this entire conversation. But because it was not clear if plugins are the modules and because the links were broken i did not read it.

You just could tell in your very first post "hey, noob, here is your tutorial and lighttpd calls modules plugins" and give me that link, but instead you lectured me for two days for not reading a broken manual which was updated eight years ago and for daring to ask, how to start.

Please try harder. If you do, I might answer additional questions next week.

Don't bother. I've fed up with your malevolent arrogance.

RE: Lighttpd module example - Added by gstrauss about 4 years ago

On the front page of the wiki https://redmine.lighttpd.net/projects/lighttpd/wiki is a section "Developing Information". There are 5 lines and 5 links in that section. One of them is Developing lighty. On that page, also an index with 10 brief bullet points, one bullet is a link Writing Lighttpd Plugins.

If you were actually someone who knows how to write code in C, then you should not be a noob and should not need someone to read the wiki to you.

When asking for help, listen to the response. "Sorry, I missed the 'wiki' word" just doesn't cut it after it has been repeated to you.

RE: Lighttpd module example - Added by TCH about 4 years ago

See? How should i know what is "Lighty" and that contains what i need? How should i know, that Lighttpd calls modules as plugins? Did you expect me to read the entire manual? Including the irrelevant parts too? This is why i choose to simply ask. To pointed to the right direction, to know what exactly i should read if i want to write a simple module for Lighttpd.

Noob in Lighttpd. I've never worked with Lighttpd before. And i did not asked to read the wiki instead of me.

Errare humanum est. I could say "RTFM" just does not cut if the manual is broken since who knows how long.

RE: Lighttpd module example - Added by gstrauss about 4 years ago

I have never claimed that the documentation was perfect, and I often take a moment to improve things when errors or staleness are pointed out. (see above)

However, your feint at an excuse misses its mark. If you did not understand the word "Developing", then why are you here? If you did not bother to click the link "Developing lighty", one of five links, and read a few words, then you are not making a sufficient effort to help yourself, and your lack of effort is the primary reason you are not getting what you want. It is your lack of effort that has cost you multiple days. Please see my very first response, which pointed you to the wiki and asked you to make a greater effort. If you are going to try to fault me for not providing you a clickable link, you missed the point I was trying to make, which is that in your initial post, you did not demonstrate that you tried to at least skim the existing documentation, which is more than one page if you are going to try to develop a module.

.

BTW, from the front page: https://www.lighttpd.net/

The very first line reads:
"Security, speed, compliance, and flexibility -- all of these describe lighttpd (pron. lighty) which is rapidly redefining efficiency of a webserver; ..."

RE: Lighttpd module example - Added by gstrauss about 4 years ago

Suggested reading:

How To Ask Questions The Smart Way
Eric Steven Raymond
http://www.catb.org/~esr/faqs/smart-questions.html (not affiliated with lighttpd)

RE: Lighttpd module example - Added by TCH about 4 years ago

If you did not understand the word "Developing", then why are you here?

You misunderstand. When you told me i'm missed the development section, because i accidentally skipped the last word (wiki), i interpreted it that you're talking about the development section in here, the forum. I thought i was in the wrong section to ask, or something like that. Yeah, you did not tell this, but the wiki. That was the word i missed in your reply. Not on the top of the page. I already apologized for that.

If you did not bother to click the link "Developing lighty", one of five links, and read a few words, then you are not making a sufficient effort to help yourself, and your lack of effort is the primary reason you are not getting what you want.

I did not clicked it, because i did not know what is it. I already told you.

If you are going to try to fault me for not providing you a clickable link, you missed the point I was trying to make, which is that in your initial post, you did not demonstrate that you tried to at least skim the existing documentation, which is more than one page if you are going to try to develop a module.

I did not faulted you for anything, but your hostile behaviour. However i already told you above, i tried to search in the wiki, before i came here. I searched for "dynamic module howto" (or something similar) and found that "plugin" page. (IIRC i found that page from google too.) But the links were broken and i did not know, that modules are called plugins here. This is why i registered and asked. Also, it's not that you did not give me a clickable link, "modules are called plugins in lighttpd" would also do, because then i would know that the page i found is for me.

BTW, from the front page: https://www.lighttpd.net/

The very first line reads:
"Security, speed, compliance, and flexibility -- all of these describe lighttpd (pron. lighty) which is rapidly redefining efficiency of a webserver; ..."

I arrived here from google, not from the front page, so i did not see that line.

Suggested reading:

How To Ask Questions The Smart Way
Eric Steven Raymond

Thanks, that is useful. But i have to say, this is the first time, when i asked something in the wrong way, i got a response this degrading.

    (1-13/13)