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.

25074 questions
57
votes
1 answer

What does "app.run(host='0.0.0.0') " mean in Flask

I am reading the Flask documentation. I was told that with app.run(host='0.0.0.0'), I could make the server publicly available. What does it mean ? How can I visit the server in another computer (just localhost:5000 in my own computer) ?
Ding
  • 579
  • 1
  • 4
  • 4
57
votes
2 answers

Golang. What to use? http.ServeFile(..) or http.FileServer(..)?

I'm a little bit confused. Much of examples shows usage of both: http.ServeFile(..) and http.FileServer(..), but seems they have very close functionality. Also I have found no information about how to set custom NotFound handler. // This works and…
Timur Fayzrakhmanov
  • 17,967
  • 20
  • 64
  • 95
56
votes
10 answers

how to disable direct access to a web site by ip address

I have a website on a VPS. The issue I am having is that when I enter the IP of the server, it links to the website. Even when entering mail.domain.com, it does the same thing. How do I disable that, so a visitor would get a message or be directed…
Khaled A
  • 561
  • 1
  • 4
  • 4
53
votes
4 answers

Start a PHP server on Mac OS X

I am figuring out how to use PHP OpenId I have cloned the repo to the ~/www directory. There are some examples in the php-open-id/examples directory which I wanted to run. Specifically, I wanted to render the page…
user3425344
  • 3,357
  • 4
  • 20
  • 31
53
votes
4 answers

Why do I need to use http.StripPrefix to access my static files?

main.go package main import ( "net/http" ) func main() { http.Handle("/static/", http.StripPrefix("/static/", http.FileServer(http.Dir("static")))) http.ListenAndServe(":8080", nil) } Directory…
Dante
  • 10,722
  • 16
  • 51
  • 63
52
votes
15 answers

Missing credentials for "PLAIN" nodemailer

I'm trying to use nodemailer in my contact form to receive feedback and send them directly to an email. This is the form below.
igolo
  • 521
  • 1
  • 4
  • 4
51
votes
14 answers

Python pip raising NewConnectionError while installing libraries

I've Python 3 running in a linux server. I need to install some libraries (obviously) so I'm trying : pip3 install numpy Which, is resulting in the following error: Collecting numpy Retrying (Retry(total=4, connect=None, read=None, redirect=None,…
Mooncrater
  • 4,146
  • 4
  • 33
  • 62
51
votes
2 answers

What does binding a Rails Server to 0.0.0.0 buy you?

I am using "www.xip.io" as a DNS wildcard for testing on different devices. I set my primary domain to my IP address. I fire up a rails server with bundle exec rails server and I go here www..xip.io:3000 and notice my rails server…
andy4thehuynh
  • 2,042
  • 3
  • 27
  • 37
48
votes
2 answers

Difference between a server with http.createServer and a server using express in node js

What's the difference between creating a server using http module and creating a server using express framework in node js? Thanks.
Koushik Das
  • 9,678
  • 3
  • 51
  • 50
48
votes
10 answers

PHPmyadmin pop-up error notice keeps appearing when clicking on columns of databases

I keep receiving a pop-up error, when clicking on columns in databases: Some errors have been detected on the server, please look at the bottom of this window. Notice in .\libraries\tbl_columns_definition_form.inc.php#55 Undefined variable:…
n.morgana
  • 609
  • 1
  • 5
  • 5
46
votes
2 answers

Why does React have a server on its own?

First of all, I know the question is badly formulated. I can't think of any thing to describe the situation as I'm a beginner. So when on cmd we type npx create-react-app myapp, this sets up the react project. Then we could do npm start and we could…
Eye Patch
  • 881
  • 4
  • 11
  • 23
46
votes
18 answers

keep getting "? Something is already running on port 3000" when I do npm start on react app

I keep on getting "? Something is already running on port 3000" message in my terminal when I start up my react server when there is absolutely nothing running on my port 3000 What I have tried to solve with: Restart the macOS. checking my…
Jonathan Lee
  • 461
  • 1
  • 4
  • 4
43
votes
7 answers

How to run pm2 so other server users are able to access the process?

When I start my Nodejs app with pm2, other server users are not able to access the process. Even if I start pm2 from a custom directory (not current user's ~/, what pm2 is using by default): HOME=/var/www pm2 start app.js Directory is accessible by…
Nik Sumeiko
  • 8,263
  • 8
  • 50
  • 53
43
votes
4 answers

how to automatically restart a node server?

We are finishing development of a project, the client is already using it but occasionally some errors occur - crashing the server. I know I could register a service as 'upstart' script on linux, in order to have my node service restart when it…
transient_loop
  • 5,984
  • 15
  • 58
  • 117
40
votes
3 answers

nginx map directive: why is it allowed only on http level?

There is a very useful directive in Nginx map. But it is possible to use it only on the http level (see docs here http://nginx.org/en/docs/http/ngx_http_map_module.html#map). For example, I have a server defined and I would like to use some…
chestozo
  • 1,203
  • 1
  • 12
  • 29