Most Popular
1500 questions
46
votes
6 answers
DNS using CNAMEs breaks MX records?
We are trying to move all our websites we host to CNAMES as we are planning on moving servers in the new year and would like the ability to move some clients to one server and other clients somewhere else. We were planning on giving clients a unique…
johnwards
- 785
46
votes
4 answers
How do I remove a specific bad plan from the SQL Server query cache?
We have one particular SQL Server 2008 query (not a stored proc, but the same SQL string -- executes every 5 minutes) that intermittently caches a very bad query plan.
This query normally runs in a few milliseconds, but with this bad query plan, it…
Jeff Atwood
- 13,174
- 20
- 75
- 93
46
votes
6 answers
IIS Log Request Body / POST Data
Does anyone know how I could get IIS to log POST data or the entire HTTP request?
Jim
46
votes
4 answers
Ansible security best practices
I am going to introduce Ansible into my data center, and I'm looking for some security best practice on where to locate the control machine and how to manage the SSH keys.
Question 1: the control machine
We of course need a control machine. The…
Mat
- 1,903
46
votes
6 answers
Appending to lists or adding keys to dictionaries in Ansible
(Related to Callbacks or hooks, and reusable series of tasks, in Ansible roles):
Is there any better way to append to a list or add a key to a dictionary in Ansible than (ab)using a jina2 template expression?
I know you can do something like:
-…
Craig Ringer
- 11,243
46
votes
11 answers
Most efficient way to batch delete S3 Files
I'd like to be able to batch delete thousands or tens of thousands of files at a time on S3. Each file would be anywhere from 1MB to 50MB. Naturally, I don't want the user (or my server) to be waiting while the files are in the process of being…
SudoKill
- 563
- 1
- 4
- 5
46
votes
1 answer
how to install an older version of a pecl package
I have this code
$passengerId = new \MongoId(oPassenger->getId());
return $this->createQueryBuilder('Device')
->update()
->multiple(true)
->field('activated')->set(false)
…
abbood
- 1,127
46
votes
5 answers
Find DKIM and DMARC Records?
Is there a method to find a domain's DKIM and DMARC records using dig or nslookup?
I have attempted to do the following:
dig somedomain.org any
returns many records, but not the known DKIM and DMARC text records.
nslookup -type=txt…
Evil Genius
- 571
46
votes
12 answers
Sell partitioning to me
I have often wondered why there is such a passion for partitioning drives, especially on Unixy OSes (/usr, /var, et al). This does not seem to be a common theme with Windows installations.
It seems that partitioning greatly increases the likelihood…
46
votes
6 answers
Is it safe for a production server to have make installed?
During the setup of my virtual server instances I require some applications to be built using make. Are there any security risks associated with having make installed? Or should I clean it up before the instance is deployed?
I also have the gcc…
S-K'
- 1,311
46
votes
8 answers
How to enable SSH X11 forwarding through additional server?
I have hosts A,B and C. From host A I can access through ssh only B. From B I can access C.
I want to be able to run X11 programs on C and forward display to A.
I tried this:
A$ ssh -X B
B$ ssh -X C
C$ xclock
Error: Can't open display:
But it…
lexsys
- 2,933
- 6
- 31
- 34
46
votes
4 answers
Setting Nginx to catch all unhandled vhosts
If I already have a bunch of virtualhosts, how can I create a virtual host to handle requests that don't match any of the virtualhosts? (i.e. access by IP, another domain linking to IP, .etc .etc)
SandyD
- 571
46
votes
2 answers
Nginx "Default" Server?
I have an Nginx with a number of enabled server blocks. Each server answers to 1 canonical domain and may forward 1 or more to that canonical URL. I have at least one server (haven't checked all of them yet) where, if I type in a non-existent domain…
Rob Wilkerson
- 1,515
46
votes
2 answers
How to delete .fuse_hidden* files?
I have small Linux server (Debian Squeeze) which runs a Samba server which is configured to share some folders with some windows machines. While trying to delete one of the directories from windows I received the "Cannot delete folder" error.
I…
Lando
- 615
46
votes
5 answers
How do I make uWSGI restart when a Python script is modified?
Can't remember where, but I read uWSGI can reload itself like Django development server when a project script is modified. I can't find that in the docs, nor in the internets. How can I do this?
I use Ubuntu 12.04 on my working machines and Debian…
culebrón
- 575