User avatar
batence
Posts: 12
Joined: Wed Aug 12, 2015 9:55 am

About webserver configuration

Fri Aug 21, 2015 4:29 pm

Sorry first but I cant found a "Poll" button in forum.

About Web Server Configuration:
- Apache
- Nginix + Varnish (http accelerator)
- Apache + Varnish (http accelerator)
- Apache + Nginx (proxy reverse)
- Apache + Nginx (proxy reverse) + Varnish (http accelerator)

I just wonder which configuration you will choose and why?

Thanks!

Heater
Posts: 15949
Joined: Tue Jul 17, 2012 3:02 pm

Re: About webserver configuration

Fri Aug 21, 2015 5:12 pm

None of the above.

I build all my web services out of node.js and Javascript. Makes it much easier to get from serial port / GPIO / other interface to web page and maintain continuous, real-time, updates between the two when running on an embedded system like the Pi. Who wants to mess with Apache and PHP to do such simple things?

I may put nginx in front of many such node services to proxy requests to the right place.

On actual server systems, think google/amzon cloud instances I might use nginx to provide load balancing but that is somewhat out of scope here I think.
Last edited by Heater on Fri Aug 21, 2015 10:02 pm, edited 1 time in total.
Memory in C++ is a leaky abstraction .

User avatar
DougieLawson
Posts: 39120
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: About webserver configuration

Fri Aug 21, 2015 9:34 pm

What about Lighttpd?

What's your web server going to run? How much traffic do you expect? Why do you think you need a reverse proxy?
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Heater
Posts: 15949
Joined: Tue Jul 17, 2012 3:02 pm

Re: About webserver configuration

Fri Aug 21, 2015 9:56 pm

Indeed. What about Lighttpd?

We have no idea of the requirement here.

Do we want to serve up tons of static HTML documents, images and so on?

Do we want to run some PHP application nightmare?

Do we expect real-time communication from service to browser?

Is there one expected user, or a million, or a billion?

I mean really. It would be great if people would sometimes think about the questions they ask.

Sorry, I'm a bit grumpy, I mean well.
Memory in C++ is a leaky abstraction .

User avatar
DougieLawson
Posts: 39120
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: About webserver configuration

Fri Aug 21, 2015 10:06 pm

It's exactly what we get everyday on this forum. Nobody searches before posting, nobody posts a coherent question asking about stuff that a simple search doesn't reveal.

My eight raspberries run a mixture of web servers.
A+: Nginx
Eagle: Lighttpd
Apollo: Apache2
Odyssey: Lighttpd
Saturn: Lighttpd
Raspberry: Nginx
Pi: Lighttpd
Raspberrypi: Apache2
that's mainly so I can field the questions that turn up on here. It's Apollo running Apache2 that's directly open to the public internet.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Heater
Posts: 15949
Joined: Tue Jul 17, 2012 3:02 pm

Re: About webserver configuration

Fri Aug 21, 2015 10:22 pm

Dougie,

This question is particularly interesting. It asks in detail about the merits of Apache, Nginix, Varnish, http accelerators, reverse proxy, whatever. With seemingly no comprehension of why anyone would want any of those things. Or not want them.

Sorry batence if I am not understanding you correctly.
Memory in C++ is a leaky abstraction .

User avatar
DougieLawson
Posts: 39120
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: About webserver configuration

Sat Aug 22, 2015 9:36 am

Heater wrote:This question is particularly interesting. It asks in detail about the merits of Apache, Nginix, Varnish, http accelerators, reverse proxy, whatever. With seemingly no comprehension of why anyone would want any of those things. Or not want them.
Exactly, because it doesn't give any context. All that stuff can be run on any Linux system, whether it's sensible to run it on a Raspberry depends on too many variables that the OP hasn't given us. So in true form the answer is, of course, "It depends.".
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Heater
Posts: 15949
Joined: Tue Jul 17, 2012 3:02 pm

Re: About webserver configuration

Sat Aug 22, 2015 7:29 pm

When I said "Sorry batence if I am not understanding you correctly." It was an invitation for you to clear up any misunderstanding I have about what you were asking and why.

I was not expecting that tantrum in response.
Memory in C++ is a leaky abstraction .

User avatar
mahjongg
Forum Moderator
Forum Moderator
Posts: 13092
Joined: Sun Mar 11, 2012 12:19 am
Location: South Holland, The Netherlands

Re: About webserver configuration

Sun Aug 23, 2015 1:11 am

I have given Batence a warning, and deleted 3 posts filled with rants, and bad language by him.
such an attitude will not be tolerated here!
Batence, please calm down, these people are trying to help!

User avatar
r3d4
Posts: 982
Joined: Sat Jul 30, 2011 8:21 am
Location: ./

Re: About webserver configuration

Sun Aug 23, 2015 3:48 am

I just wonder why you ' just wonder which configuration i will choose and why?' :?:
DougieLawson wrote:What about Lighttpd? ...
Dont forget about BusyBox HTTP Daemon (httpd) [1]

#http://git.busybox.net/busybox/tree/networking/httpd.c

[1] - http://wiki.openwrt.org/doc/howto/http.httpd

+ build script
http://distro.ibiblio.org/tinycorelinux ... d/build.sh

Return to “General discussion”