A software application that services requests from clients using the Hypertext Transfer Protocol.
Questions tagged [webserver]
8218 questions
175
votes
15 answers
Minimal web server using netcat
I'm trying to set up a minimal web server using netcat (nc). When the browser calls up localhost:1500, for instance, it should show the result of a function (date in the example below, but eventually it'll be a python or c program that yields some…

andwagon
- 1,851
- 2
- 12
- 4
172
votes
3 answers
Tomcat VS Jetty
I'm wondering about the downsides of each servers in respect to a production environment. Did anyone have big problems with one of the features? Performance, etc. I also quickly took a look at the new Glassfish, does it match up the simple servlet…

Loki
- 29,950
- 9
- 48
- 62
165
votes
3 answers
What is the difference between the 'sites-enabled' and 'sites-available' directory?
What is use of these two directories in Apache 2 and how can we do it?

Amit Mehta
- 1,777
- 2
- 11
- 3
159
votes
2 answers
What exactly is a pre-fork web server model?
I want to know what exactly it means when a web server describes itself as a pre-fork web server. I have a few examples such as unicorn for ruby and gunicorn for python.
More specifically, these are the questions:
What problem does this model…

Hery
- 7,443
- 9
- 36
- 41
145
votes
4 answers
Why does Unicorn need to be deployed together with Nginx?
I would like to know the difference between Nginx and Unicorn. As far as I understand, Nginx is a web server while Unicorn is a Ruby HTTP server.
Since both Nginx and Unicorn can handle HTTP requests, what is the need to use the combination of Nginx…

loganathan
- 5,838
- 8
- 33
- 50
138
votes
18 answers
Is there some way to PUSH data from web server to browser?
Of course I am aware of Ajax, but the problem with Ajax is that the browser should poll the server frequently to find whether there is new data. This increases server load.
Is there any better method (even using Ajax) other than polling the server…

Niyaz
- 53,943
- 55
- 151
- 182
137
votes
3 answers
How does a Node.js "server" compare with Nginx or Apache servers?
I have been studying Node.js recently and came across some material on writing simple Node.js based servers. For example, the following.
var express = require("express"),
http = require("http"), app;
// Create our Express-powered HTTP server
// and…

Grateful
- 9,685
- 10
- 45
- 77
136
votes
1 answer
How do I stop Skype from using HTTP or HTTPS ports 80 and 443?
I installed the Apache web server on my Windows 7 machine and I'm unable to start it because Skype.exe is already using HTTP port 80 and HTTPS port 443.
I need Apache and Skype to co-exist on the same machine. How do I configure Apache to use other…

Prime
- 3,530
- 5
- 28
- 47
127
votes
12 answers
Nginx upstream prematurely closed connection while reading response header from upstream, for large requests
I am using nginx and node server to serve update requests. I get a gateway timeout when I request an update on large data. I saw this error from the nginx error logs :
2016/04/07 00:46:04 [error] 28599#0: *1 upstream prematurely closed
connection…

Divya Konda
- 1,427
- 2
- 10
- 11
124
votes
4 answers
How to open a web server port on EC2 instance
I'm running a CherryPy web server at 0.0.0.0:8787 on an EC2 instance.
I can connect to the web server via local wget on the EC2 machine, but I can't reach the instance from my own remote machine (I connect to EC2 via ssh).
Do I need to open up port…

Cat
- 7,042
- 8
- 34
- 36
123
votes
10 answers
Can we say node.js is a web server?
I found that I am confusing web framework and web server.
Apache is a web server.
Tornado is a web server written in Python.
Nginx is a web server written in C
Zend is a web framework in php
Flask/Bottle is a web framework in Python
RoR is a web…

TheOneTeam
- 25,806
- 45
- 116
- 158
118
votes
7 answers
How to properly close Node.js Express server?
I need to close server after getting callback from /auth/github/callback
url. With usual HTTP API closing
server is currently supporting with server.close([callback])
API function, but with node-express server i’m getting TypeError: Object function…

Vladimir Starkov
- 19,264
- 8
- 60
- 114
117
votes
8 answers
Amazon AWS Filezilla transfer permission denied
I have my instance of the Amazon AWS running, test page is up.
I am trying to SFTP the files to the server to display my website. I have Filezilla connected to the AWS server but when I try to move the files from my local machine to the…

zburns12
- 1,783
- 3
- 15
- 16
112
votes
6 answers
How to redirect user's browser URL to a different page in Nodejs?
In the application I'm trying to write, the main page (http://localhost:8675) has the following form:
Here is the code in server.js:
http.createServer(function(request,…

Tanaki
- 2,575
- 6
- 30
- 41
110
votes
10 answers
how to configuring a xampp web server for different root directory
The web directory is the home of all of your application's public and static files. Including images, stylesheets and JavaScript files. It is also where the front controllers live.
So the question is when i install and set up xampp my web directory…

vardius
- 6,326
- 8
- 52
- 97