Refers to the software or hardware that make up a webserver, delivering content on a private or public website.
Questions tagged [web-server]
3296 questions
6
votes
1 answer
How to deny POST to a url in nginx
Some of the SQL-heavy URL on my app (say /members) are being attacked by botnets. So I'd like to disable anybody to post to these URL, while allowing others to GET them.
I tried to make a nested loop like this:
if ($request_uri ~ .*members^) {
…

Jand
- 213
- 1
- 4
- 7
6
votes
1 answer
Why isn't puma using all of its threads?
I'm using puma and nxinx, and as far as I can tell it is only ever using a single thread even when I start it with the default of 16 threads or more. I've set up a fresh rails app, then gone through the set up described…

DrFredEdison
- 261
- 4
- 12
6
votes
13 answers
What are the Benefits of Server Hardware?
What are the benefits of using Server Hardware versus just placing server software on top of Desktop Hardware?
I've been running a small time webserver for a couple of websites, a blog and a multi-user dungeon for years and am considering…

Daniel Bingham
- 221
- 2
- 7
6
votes
2 answers
Nginx error page with JSON response
I'm trying to serve a maintenance page to clients making request to my application when it is under maintenance. Following is my nginx configuration for that purpose.
server {
recursive_error_pages on;
listen 80;
...
if (-f…

Waseem
- 173
- 1
- 2
- 7
6
votes
2 answers
What are the effects of having the TLS certificate and private key in same file?
I have noticed that a number of different web and mail server software allow or require you to provide the TLS certificate (including server certificate, CA intermediate certificate, and CA root certificate) and private key in a single .pem…

user981178
- 445
- 1
- 3
- 13
6
votes
3 answers
Wordpress + nginx infinite redirect loop
I'm having problems with a wordpress site to enter the admin area.
If I enter with:
http://www.beshan.com/wp-admin/
I get an infinite redirect loop but if I enter with:
http://www.beshan.com/wp-admin/index.php
it works
My client's server is a centos…

Oterox
- 197
- 1
- 2
- 6
6
votes
5 answers
Creating a fallback error page for nginx when root directory does not exist
I have set up an any-domain config on my nginx server - to reduce the amount of work needed when I open a new site/domain. This config allows me to simply create a folder in /usr/share/nginx/sites/ with the name of the domain/subdomain and then it…

Steffan Donal
- 71
- 1
- 6
6
votes
2 answers
IIS re-write from http to https only for subdomains of one domain only
I have an IIS7 web server with several sites running. Some of the sites are sub-domains of one domain and the others are totally separate domains. I want to use IIS re-write to redirect all the sub domain sites of one domain to https, but I want the…

Charlotte
- 161
- 1
- 2
6
votes
2 answers
Linux web servers that support websockets?
I'm currently having a lots of difficulties trying to play with socket.io which needs websockets support from the server (reverse-proxying).
I was wondering, is there any other web servers out there that supports websockets?
The errors I'm having…

Tommy B.
- 1,413
- 2
- 14
- 14
6
votes
3 answers
What is Causing this IIS 7 Web Service Sporadic Connectivity Error?
On sporadic occasions we receive the following error when attempting to call an .asmx web service from a .Net client application:
"The underlying connection was closed: A connection that was expected to be kept alive was closed by the server. …
user11764
6
votes
4 answers
Where to put Web Root in CentOS? /var/www/ or /home/user/public_html/?
Our old server has it in /home/user/public_html/ but it seems like it makes more sense in /var/www/.
The old server had cpanel and I suppose that as part of that setup, it separates virtual servers into their own folders in /home/ and gives them…

Buttle Butkus
- 1,741
- 8
- 33
- 45
6
votes
4 answers
Issues with nginx autoindex
I am trying to set up nginx so that a certain url produces the directory index of a certain directory on my server. Currently this is what my default.conf looks like.
location / {
root /usr/share/nginx/html;
index index.html…

Varun Madiath
- 163
- 1
- 1
- 4
6
votes
3 answers
Where do I find .SQL files on Ubuntu Server?
I am migrating web servers. I'm kind of stuck on migrating the MySQL databases. I was wondering where to find the .SQL files, that I need for migration, under Ubuntu Server. I think the .SQL files are the only ones I need. I will be doing the…

Arthur
- 279
- 1
- 3
- 11
6
votes
1 answer
haproxy as load-balancer and nginx as webserver?
EDIT: I'm interested in high availability, performance server setup.
I read a lot of articles about haproxy vs. nginx vs. apache etc. and this was my conclusion:
haproxy is better load-balancer than nginx
nginx is better web server than apache
So…

feketegy
- 219
- 2
- 4
6
votes
1 answer
How to setup Python with Lighttpd and FastCGI (like PHP)
Running Lighttpd on Linux, I would like to be able to execute Python scripts just the way I execute PHP scripts.
The goal is to be able to execute arbitrary script files stored in the WWW directory, e.g. http://www.example.com/*.py.
I would not…

johndir
- 305
- 1
- 5
- 9