Questions tagged [server]
A server is a running instance of a software application capable of accepting requests from a client and giving responses accordingly.
server
25,290
questions
1290
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).
...
1078
votes
65
answers
1.2m
views
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.
662
votes
31
answers
862k
views
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, ...
654
votes
6
answers
189k
views
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 = ...
527
votes
32
answers
938k
views
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 ...
319
votes
26
answers
522k
views
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 ...
313
votes
20
answers
388k
views
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:...
256
votes
16
answers
498k
views
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?
242
votes
8
answers
263k
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
...
196
votes
34
answers
586k
views
nginx.service failed because the control process exited
nginx.service failed because the control process exited
$ systemctl status nginx.service
nginx.service - Startup script for nginx service
Loaded: loaded (/usr/lib/systemd/system/nginx.service; ...
186
votes
17
answers
658k
views
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 ...
150
votes
16
answers
185k
views
Docker-compose up : Error while fetching server API version: ('Connection aborted.', ConnectionRefusedError(61, 'Connection refused'))
I am trying to do the docker-compose up command in my terminal. First I navigate to the file directory where I find a docker-compose.yaml. Then I write the command. The Server is on Port 80. I get the ...
132
votes
2
answers
162k
views
How to measure server response time for Python requests POST-request
I create POST requests with requests as follows, with a specified timeout threshold:
response = requests.post(url, data=post_fields, timeout=timeout)
However, to determine a "good" threshold,...
120
votes
3
answers
78k
views
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 ...
110
votes
4
answers
75k
views
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 ...