Questions tagged [webserver]

A software application that services requests from clients using the Hypertext Transfer Protocol.

8218 questions
110
votes
8 answers

Difference between web server, web container and application server

Please tell me the Difference between web server, web container and application server.
Gautam
  • 3,276
  • 4
  • 31
  • 53
105
votes
8 answers

How to enable cross-origin resource sharing (CORS) in the express.js framework on node.js

I'm trying to build a web server in node.js that will support cross-domain scripting, while still providing static files from a public directory. I'm using the express.js and am not really sure how to allow cross-domain scripting…
Guy
  • 5,370
  • 6
  • 25
  • 30
104
votes
6 answers

How can I view the complete httpd configuration?

I'm trying to figure out what is the full complete configuration of an httpd setup. All the configurations files are scattered in different files (/etc/httpd/conf.d, httpd.conf, various mod configs) Is there a way to list the final httpd…
Gnafu
  • 1,591
  • 3
  • 10
  • 26
104
votes
4 answers

What are the benefits of using Nginx in front of a webserver for Go?

I am writing some webservices returning JSON data, which have lots of users. What are the benefits of using Nginx in front my server compared to just using the go http server?
Daniele B
  • 19,801
  • 29
  • 115
  • 173
101
votes
3 answers

How to create .pem files for https web server

I'm using the Express framework in Node.js to create a web server. I want to use ssl for the web server's connection. The code to create the https web server is as below. var app = express.createServer({ key: fs.readFileSync('./conf/key.pem'), …
Jeffrey
  • 4,436
  • 9
  • 38
  • 54
100
votes
10 answers

Set subdirectory as website root on Github Pages

I'm using Github Pages to host & serve a static website. The static website has the typical directory structure for an app: . ├ source/ ├ build/ │ └ index.html ├ .gitignore ├ config.rb ├ Gemfile ┆ ... └ README.MD index.html is under build/, so I…
Oriol
  • 11,660
  • 5
  • 35
  • 37
98
votes
4 answers

http keep-alive in the modern age

So according to the haproxy author, who knows a thing or two about http: Keep-alive was invented to reduce CPU usage on servers when CPUs were 100 times slower. But what is not said is that persistent connections consume a lot of memory…
Michael Neale
  • 19,248
  • 19
  • 77
  • 109
93
votes
9 answers

How can I create a simple index.html file which lists all files/directories?

We use a web server that does not allow directory listing. There is a specific directory I would like to allow listing of. How can make a simple HTML file that will contain the contents of this directory?
David B
  • 29,258
  • 50
  • 133
  • 186
93
votes
5 answers

Best way to parse a URL query string

What is the best way to parse data out of a URL query string (for instance, data appended to the URL by a form) in python? My goal is to accept form data and display it on the same page. I've researched several methods that aren't quite what I'm…
egoskeptical
  • 963
  • 1
  • 6
  • 8
92
votes
3 answers

How to set the allowed url length for a nginx request (error code: 414, uri too large)

I am using Nginx in front of 10 mongrels. When I make a request with size larger then 2900 I get back an: error code 414: uri too large Does anyone know the setting in the nginx configuration file which determines the allowed uri length ?
Prakash Raman
  • 13,319
  • 27
  • 82
  • 132
88
votes
4 answers

Using variables in Nginx location rules

In Nginx, I'm trying to define a variable which allows me to configure a sub-folder for all my location blocks. I did this: set $folder '/test'; location $folder/ { [...] } location $folder/something { [...] } Unfortunately, this doesn't…
tomka
  • 1,275
  • 1
  • 11
  • 17
87
votes
8 answers

Basic static file server in NodeJS

I'm trying to create a static file server in nodejs more as an exercise to understand node than as a perfect server. I'm well aware of projects like Connect and node-static and fully intend to use those libraries for more production-ready code, but…
slapthelownote
  • 4,249
  • 1
  • 23
  • 27
86
votes
18 answers

Apache Server (xampp) doesn't run on Windows 10 (Port 80)

I have installed the Windows 10 Insider Program. Everything works, except Apache. When I try to start it, it says that port 80 is blocked. Is there a way to unblock it or tell Apache to use another port instead? I was using Windows 7 before. I had…
Aloso
  • 5,123
  • 4
  • 24
  • 41
86
votes
3 answers

Unable to start web site IIS HRESULT: 0x80070020)

I'm trying to publish a web site with a self-created SSL certificate on my own IP. After I added the web site to the IIS and tried to run it, I get this error and I'm unable to start the web site. Internet Information Services (IIS) Manager - The…
Tartar
  • 5,149
  • 16
  • 63
  • 104
85
votes
2 answers

What is the difference between nginx daemon on/off option?

This is my first web-server administration experience and I want to build docker container which uses nginx as a web-server. In all docker tutorial daemon off; option is put into main .conf file but explanation about it is omitted. I search on the…
KopBob
  • 1,051
  • 1
  • 9
  • 15