Skip to main content

Questions tagged [webserver]

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

webserver
Filter by
Sorted by
Tagged with
1939 votes
21 answers
612k views

What's the difference between a proxy server and a reverse proxy server? [closed]

What is the difference between a proxy server and a reverse proxy server?
user avatar
1288 votes
35 answers
1.4m views

Using Node.js as a simple web server

I want to run a very simple HTTP server. Every GET request to example.com should get index.html served to it but as a regular HTML page (i.e., same experience as when you read normal web pages). ...
idophir's user avatar
  • 14.6k
901 votes
28 answers
930k views

What is the difference between application server and web server?

What is the difference between application server and web server?
TwiggedToday's user avatar
  • 10.1k
684 votes
8 answers
608k views

Difference between the Apache HTTP Server and Apache Tomcat? [closed]

What is the difference in terms of functionality between the Apache HTTP Server and Apache Tomcat? I know that Tomcat is written in Java and the HTTP Server is in C, but other than that I do not ...
kaybenleroll's user avatar
  • 16.9k
419 votes
19 answers
128k views

Deploy a project using Git push

Is it possible to deploy a website using git push? I have a hunch it has something to do with using git hooks to perform a git reset --hard on the server side, but how would I go about accomplishing ...
Kyle Cronin's user avatar
  • 78.6k
416 votes
9 answers
561k views

How to create an HTTPS server in Node.js?

Given an SSL key and certificate, how does one create an HTTPS service?
murvinlai's user avatar
  • 49.9k
295 votes
15 answers
833k views

ssl_error_rx_record_too_long and Apache SSL [closed]

I've got a customer trying to access one of my sites, and they keep getting this error > ssl_error_rx_record_too_long They're getting this error on all browsers, all platforms. I can't reproduce ...
Subimage's user avatar
  • 4,493
278 votes
6 answers
438k views

Configure nginx with multiple locations with different root folders on subdomain

I'm looking to serve the root url of a subdomain and directory of a subdomain to two different folders on my server. Here is the simple set-up that I have and is not working... server { index ...
simoes's user avatar
  • 4,966
270 votes
13 answers
528k views

How can I automatically redirect HTTP to HTTPS on Apache servers?

I am trying to set up automatic redirection from HTTP to HTTPS: From manage.mydomain.com --- To ---> https://manage.mydomain.com I have tried adding the following to my httpd.conf file, but it ...
Deano's user avatar
  • 11.9k
241 votes
8 answers
262k views

Have nginx access_log and error_log log to STDOUT and STDERR of master process

Is there a way to have the master process log to STDOUT STDERR instead of to a file? It seems that you can only pass a filepath to the access_log directive: access_log /var/log/nginx/access.log ...
quinn's user avatar
  • 5,838
234 votes
2 answers
140k views

What is the difference between HTTP 1.1 and HTTP 2.0? [closed]

HTTP/1.1 has served the Web well for more than fifteen years, but its age is starting to show. Can anybody explain what is the main difference between HTTP 1.1 and 2.0? Is there any change in the ...
user avatar
228 votes
8 answers
319k views

Best lightweight web server (only static content) for Windows [closed]

I got application server running in Windows – IIS6.0 with Zend Server to execute PHP. I am looking for lightweight static content only web server on this same machine which will relive IIS form ...
bensiu's user avatar
  • 25.3k
205 votes
6 answers
167k views

nginx: [emerg] could not build the server_names_hash, you should increase server_names_hash_bucket_size

I'm in the process of setting up a new server. The web server of my choice is NGINX. I want to add the domain (e.g. example.com) as a virtual host. I already have two other domains in there and it ...
oengelha's user avatar
  • 2,227
188 votes
13 answers
55k views

Can't get rid of header X-Powered-By:Express

I am running a server on nodejs with express. I can't seem to get rid of the header: X-Powered-By:Express I was wondering if there is any way to get rid of this header or do I have to live with it?
tyronegcarter's user avatar
184 votes
4 answers
90k views

When to use Tornado, when to use Twisted / Cyclone / GEvent / other [closed]

Which of these frameworks / libraries would be the best choise for building modern multiuser web application? I would love to have an asynchronous webserver which will allow me to scale easly. What ...
Wojciech Danilo's user avatar
182 votes
17 answers
219k views

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 ...
andwagon's user avatar
  • 1,921
172 votes
3 answers
109k views

Tomcat VS Jetty [closed]

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 ...
Loki's user avatar
  • 30.6k
166 votes
2 answers
38k views

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 ...
Hery's user avatar
  • 7,559
165 votes
3 answers
151k views

What is the difference between the 'sites-enabled' and 'sites-available' directory? [closed]

What is use of these two directories in Apache 2 and how can we do it?
Amit Mehta's user avatar
  • 1,777
147 votes
4 answers
38k views

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,...
loganathan's user avatar
  • 6,036
143 votes
3 answers
86k views

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(&...
Grateful's user avatar
  • 9,987
142 votes
15 answers
428k views

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] ...
Divya Konda's user avatar
  • 1,597
137 votes
18 answers
79k views

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 ...
Niyaz's user avatar
  • 54.5k
136 votes
1 answer
71k views

How do I stop Skype from using HTTP or HTTPS ports 80 and 443? [closed]

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 ...
Prime's user avatar
  • 3,565
128 votes
4 answers
260k views

How to open a web server port on EC2 instance [closed]

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 ...
Cat's user avatar
  • 7,182
126 votes
10 answers
76k views

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/...
TheOneTeam's user avatar
  • 26.6k
123 votes
7 answers
133k views

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-...
Vladimir Starkov's user avatar
117 votes
8 answers
144k views

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 ...
zburns12's user avatar
  • 1,783
115 votes
10 answers
334k views

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 ...
vardius's user avatar
  • 6,486
113 votes
6 answers
258k views

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: <form action='/?joinnew' method='post'> <button>Start</button> </form> ...
Tanaki's user avatar
  • 2,605
112 votes
8 answers
119k views

What is the difference between web server, web container and application server? [duplicate]

What is the difference between web server, web container and application server?
Gautam's user avatar
  • 3,376
109 votes
10 answers
72k views

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 ┆ ...
Oriol's user avatar
  • 12.4k
108 votes
6 answers
165k views

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)...
Gnafu's user avatar
  • 1,670
107 votes
4 answers
45k views

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's user avatar
  • 20.5k
106 votes
8 answers
179k views

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 ...
Guy's user avatar
  • 5,478
102 votes
3 answers
109k views

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....
Jeffrey's user avatar
  • 4,496
102 votes
6 answers
123k views

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 ...
egoskeptical's user avatar
  • 1,053
98 votes
4 answers
28k views

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 ...
Michael Neale's user avatar
97 votes
9 answers
247k views

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 ...
David B's user avatar
  • 29.7k
96 votes
3 answers
180k views

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 ...
Prakash Raman's user avatar
93 votes
7 answers
726k views

Is it possible to get a list of files under a directory of a website? How?

Say I have a website www.example.com. Under the website directory there is a page secret.html. It can be accessed directly like www.example.com/secret.html, but there are no pages that link to it. Is ...
morpheus's user avatar
  • 19.8k
91 votes
2 answers
54k views

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 ...
KopBob's user avatar
  • 1,111
90 votes
4 answers
119k views

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. ...
Tartar's user avatar
  • 5,394
90 votes
4 answers
215k views

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/...
tomka's user avatar
  • 1,295
87 votes
8 answers
87k views

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 ...
slapthelownote's user avatar
86 votes
18 answers
147k views

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 ...
Aloso's user avatar
  • 5,311
84 votes
16 answers
282k views

Android - How to download a file from a webserver

In my app I am downloading a kml file from a webserver. I have set the permission for external storage and internet in my android manifest file. I am new to Android, your help is greatly appreciated. ...
Iam4fun's user avatar
  • 1,458
84 votes
3 answers
135k views

Configuring nginx to return a 404 when a URL matches a pattern

I want nginx to return a 404 code when it receives a request which matches a pattern, e.g., /test/*. How can I configure nginx to do that?
shanqn's user avatar
  • 1,175
84 votes
7 answers
127k views

Running Node.js in apache?

We have an Apache Webserver installed on a machine which also serves pages using Perl. For a project I've decided to use Node.js instead of Perl/Ruby. Just wondering if it's possible to use Apache as ...
JackSparrow123's user avatar
83 votes
8 answers
48k views

Is there a simple PHP development server? [closed]

When writing web apps in Python, it's brain dead easy to run a development server. Django and Google App Engine (GAE) both ship with simple servers. The main feature I'm looking for is no ...
mdashx's user avatar
  • 1,345

1
2 3 4 5
165