Questions tagged [server]

A server is a running instance of a software application capable of accepting requests from a client and giving responses accordingly.

A server is a running instance of an application (Software) capable of accepting requests from the client and giving responses accordingly.

Servers can run on any computer including dedicated computers, which individually are also often referred to as "the server".

In many cases, a computer can provide several services and have several servers running. The advantage of running servers on a dedicated computer is security. For this reason most of the servers are daemon processes and designed by the designers in such a way that they can be run on specific computer(s).

There are various categories of servers. Please refer to this Wikipedia page to learn more about the subcategories of servers.

21987 questions
1172
votes
33 answers

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). Using the code below, I can read the content of…
idophir
  • 13,229
  • 5
  • 22
  • 20
897
votes
57 answers

How to configure port for a Spring Boot application

How do I configure the TCP/IP port listened on by a Spring Boot application, so it does not use the default port of 8080.
Paul Verest
  • 51,779
  • 39
  • 174
  • 288
553
votes
26 answers

How do I run a node.js app as a background service?

Since this post has gotten a lot of attention over the years, I've listed the top solutions per platform at the bottom of this post. Original post: I want my node.js server to run in the background, i.e.: when I close my terminal I want my server…
Peter Kruithof
  • 9,284
  • 5
  • 27
  • 42
524
votes
5 answers

Express.js - app.listen vs server.listen

This may be a very basic question but I simply don't get it. What is the difference between creating an app using Express.js and starting the app listening on port 1234, for example: var express = require('express'); var app =…
Tamas
  • 9,401
  • 11
  • 42
  • 76
452
votes
27 answers

Apache2: 'AH01630: client denied by server configuration'

I get this error when trying to access localhost via a browser. AH01630: client denied by server configuration I checked my site folder permissions using: sudo chmod 777 -R * Here is my configuration file: ServerAdmin…
Hazem Hagrass
  • 8,566
  • 8
  • 29
  • 49
281
votes
19 answers

How to make a node.js application run permanently?

On a Debian server, I installed Node.js. I understand how to launch an app from putty with this command line: node /srv/www/MyUserAccount/server/server.js and get to it on the address 50.51.52.53:8080 (IP and port). But as soon as I close putty,…
Sam
  • 3,199
  • 3
  • 14
  • 17
272
votes
24 answers

How to clear the cache of nginx?

I use nginx to as the front server, I have modified the CSS files, but nginx is still serving the old ones. I have tried to restart nginx, to no success and I have Googled, but not found a valid way to clear it. Some articles say we can just delete…
Freewind
  • 177,284
  • 143
  • 381
  • 649
190
votes
13 answers

PHP server on local machine?

I'm trying to build a PHP site and I'm wanting to test my PHP files without uploading them to my host. Basically testing them on my own machine before I upload them. How do I do that?
Kozy
  • 2,111
  • 3
  • 15
  • 10
119
votes
3 answers

There was an error while trying to load the gem 'uglifier'. (Bundler::GemRequireError)

Why am i getting this error? shibly@mybox:~/blog$ rails server /home/shibly/.gem/ruby/2.2.4/gems/bundler-1.11.2/lib/bundler/runtime.rb:80:in `rescue in block (2 levels) in require': There was an error while trying to load the gem 'uglifier'.…
shibly
  • 11,180
  • 33
  • 97
  • 162
91
votes
19 answers

npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\Nuwanst\package.json'

I just want to install socket.io to my project which is located on 3.chat folder. But when I run following command it shows following Warnings.And its not created a node_modules directory inside my project folder. How to fix…
user8109089
88
votes
5 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,351
  • 2
  • 9
  • 21
84
votes
5 answers

What exactly is Werkzeug?

From the official documentation: Werkzeug is a WSGI utility library for Python. However, when I run my Flask web application, I notice that the response header from the server contains: HTTP/1.0 200 OK Content-Type: text/html;…
jinglei
  • 2,609
  • 6
  • 21
  • 39
80
votes
4 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
  • 8,096
  • 3
  • 31
  • 36
80
votes
26 answers

Apache is not running from XAMPP Control Panel ( Error: Apache shutdown unexpectedly. This may be due to a blocked port)

I have installed XAMPP (xampp-win32-1.8.2-0-VC9-installer.exe) on Windows 7 successfully. But unfortunately, the following error was found during running Apache from XAMPP Control Panel: 5:38:38 PM [Apache] Error: Apache shutdown…
Ripon Al Wasim
  • 34,088
  • 37
  • 146
  • 165
79
votes
2 answers

Golang read request body

I am writing my own logginMiddleware. Basically, I need to log body of the request and the response. The problem that I faced is that when I read body, it becomes empty and I cannot read it twice. I understand that it happens because it is of type…
Rustam Ibragimov
  • 2,203
  • 5
  • 18
  • 30
1
2 3
99 100