Most Popular

1500 questions
78
votes
7 answers

How to check for modified config files on a Debian system?

How to find all Debian managed configuration files which have been changed from the default?
malclocke
  • 1,711
  • 1
  • 12
  • 6
78
votes
8 answers

AWS RDS connection limits

RDS server come up with 40 connection max, as in the following documentation I am using Magento 1.9, and at some points, i reach the max number then website is out of service. Do you have any recommended way to solve this issue? From my…
Alaa Badran
  • 893
  • 1
  • 7
  • 7
78
votes
6 answers

Generating a self-signed cert with openssl that works in Chrome 58

As of Chrome 58 it no longer accepts self-signed certs that rely on Common Name: https://productforums.google.com/forum/#!topic/chrome/zVo3M8CgKzQ;context-place=topicsearchin/chrome/category$3ACanary%7Csort:relevance%7Cspell:false Instead it…
bcardarella
  • 1,737
  • 2
  • 12
  • 10
78
votes
8 answers

How does Windows decide which DNS Server to use when resolving names?

What algorithm does Windows use to decide which DNS Server it will query in order to resolve names? Let's say I have several interfaces, all active, some with no dns server specified, some told to determine it automatically, and some with it…
Artefacto
  • 1,065
  • 1
  • 8
  • 12
78
votes
11 answers

Allow SCP but not actual login using SSH

Is there any way to configure a user on a Linux box (Centos 5.2 in this case) so that they can use scp to retrieve files, but can't actually login to the server using SSH?
DrStalker
  • 6,946
  • 24
  • 79
  • 107
78
votes
8 answers

Copy directory structure intact to AWS S3 bucket

I want to use the AWS S3 cli to copy a full directory structure to an S3 bucket. So far, everything I've tried copies the files to the bucket, but the directory structure is collapsed. (to say it another way, each file is copied into the root…
agentv
  • 970
  • 1
  • 6
  • 11
78
votes
3 answers

How does vm.overcommit_memory work?

When I use the default settings: vm.overcommit_memory = 0 vm.overcommit_ratio = 50 I can read these values from /proc/meminfo file: CommitLimit: 2609604 kB Committed_AS: 1579976 kB But when I change vm.overcommit_memory from 0 to 2, I'm…
Mikhail Morfikov
  • 966
  • 1
  • 10
  • 12
78
votes
4 answers

nginx real_ip_header and X-Forwarded-For seems wrong

The wikipedia description of the HTTP header X-Forwarded-For is: X-Forwarded-For: client1, proxy1, proxy2, ... The nginx documentation for the directive real_ip_header reads, in part: This directive sets the name of the header used for…
Kirk Woll
  • 883
  • 1
  • 7
  • 7
78
votes
11 answers

Remove "www" and redirect to "https" with nginx

I want to create a rule in nginx that does two things: Removes the "www." from the request URI Redirects to "https" if the request URI is "http" There are plenty of examples of how to do each of those things individually, but I can't figure out a…
Devin
  • 903
  • 1
  • 8
  • 8
78
votes
5 answers

In Linux, what is the difference between "buffers" and "cache" reported by the free command?

This is an old question that I've seen from time to time. My understanding of it is rather limited (having read about the differences a long time ago, but the factoid(s) involved never really stuck). As I understand it, Buffers Are used by…
Avery Payne
  • 14,536
  • 1
  • 51
  • 88
78
votes
4 answers

How do I edit git's history to correct an incorrect email address/name

When I started using git I just did a git init and started calling add and commit. Now I am starting to pay attention and I can see that my commits are showing up as cowens@localmachine, rather than the address I want. It appears as if setting…
Chas. Owens
  • 2,053
  • 2
  • 21
  • 24
78
votes
3 answers

In Bash, are wildcard expansions guaranteed to be in order?

Is the expansion of a wildcard in Bash guaranteed to be in alphabetical order? I am forced to split a large file into 10 Mb pieces so that they can be be accepted by my Mercurial repository. So I was thinking I could use: split -b 10485760 Big.file…
Sled
  • 927
  • 1
  • 7
  • 11
77
votes
1 answer

How does "restart: always" policy work in docker-compose?

I have docker compose file with PostgreSQL and my application, like this: version: '3' services: postgresql: image: postgres:9.6.6 ports: - 9932:5432 expose: - "5432" environment: - POSTGRES_PASSWORD=pass …
Marcin Zablocki
  • 873
  • 1
  • 6
  • 6
77
votes
5 answers

What is the difference between SAN, NAS and DAS?

What is the difference between SAN, NAS and DAS?
77
votes
3 answers

How to handle relative urls correctly with a reverse proxy

I have a reverse proxy setup as follows in Apache: Server A with address www.example.com/folder is the reverse proxy server. It maps to: Server B with address test.madeupurl.com This kind of works. But the problem I have is, on…
Hard worker
  • 879
  • 2
  • 8
  • 11