Most Popular
1500 questions
90
votes
2 answers
Why do I need nginx when I have uWSGI
There are many tutorials on how to configure nginx to cooperate with uWGSI when I want to deploy Django application.
But why do I need nginx in this kit? uWSGI itself can serve WSGI Python applications, it can serve static files, it can also do…
user983447
- 1,157
90
votes
3 answers
Is a CNAME to CNAME chain allowed?
Is it allowed in DNS to have a CNAME record that points to another CNAME record?
The reason we need this is that we have a hostname that we want to be looked up to the IP address of our web server computer. We also have another web server computer…
Erik Sjölund
- 2,145
90
votes
3 answers
How to apply a filter to real time output of `tail -f `?
tail -f path
The above will output modifications to the file instantly, but I want to apply a filter to the output, only show when there is a keyword xxx in it.
How to approach this?
wamp
- 1,237
90
votes
17 answers
Should network hardware be set to "autonegotiate" speeds or fixed speeds?
We recently had a little problem with networking where multiple servers would intermittently lose network connectivity in a fairly painful-to-resolve way (required hard reboot). This has been going on for about two weeks, seemingly at random, on…
Jeff Atwood
- 13,174
- 20
- 75
- 93
89
votes
9 answers
Service start request repeated too quickly, refusing to start limit
I have a systemd service that displays the following error service start request repeated too quickly, refusing to start
I understand that the service is configured to restart on failure and it is restarting again and again. But when exactly does…
Vikas Tiwari
- 1,013
89
votes
4 answers
Nginx Redirect via Proxy, Rewrite and Preserve URL
In Nginx we have been trying to redirect a URL as follows:
http://example.com/some/path -> http://192.168.1.24
where the user still sees the original URL in their browser. Once the user is redirected, say they click on the link to…
robjohncox
- 1,045
89
votes
4 answers
How to change the name and description of an AWS EC2 security group?
How do you change the name and description of a security group in AWS EC2?
My security group is named quick-start-1 (the default) and I want to change it to "HTTP, HTTPS and Limited SSH".
joshua.paling
- 1,275
89
votes
4 answers
Vagrant / VirtualBox DNS 10.0.2.3 not working
I am running a fresh install of Linux Mint Nadia (14). I am following the instructions on Vagrant Getting Started but have gotten stuck on the Provisioning. It seems the Vagrant box cannot connect outside and so I can't install anything using either…
Rudolf Vavruch
- 1,305
89
votes
4 answers
Why is TCP accept() performance so bad under Xen?
The rate at which my server can accept() new incoming TCP connections is really bad under Xen. The same test on bare metal hardware shows 3-5x speed ups.
How come this is so bad under Xen?
Can you tweak Xen to improve performance for new TCP…
cgbystrom
- 1,061
89
votes
10 answers
pg_dump and pg_restore: input file does not appear to be a valid archive
I have used pg_dump on one machine and copied result file to another, where I tried to restore it. I believe schema is the same. However, I get:
pg_restore: [archiver] input file does not appear to be a valid archive
I have done following…
gruszczy
- 993
89
votes
9 answers
Command line program to test DHCP service
Is there a simple ping-like command to test whether a DHCP service is running on a network? ...on Linux
pufferfish
- 2,890
88
votes
5 answers
What is the benefit of not allocating a terminal in ssh?
Every once in a while I will do something like
ssh user@host sudo thing
and I am reminded that ssh doesn't allocate a pseudo-tty by default. Why doesn't it? What benefits would I be losing if I aliased ssh to ssh -t?
Chas. Owens
- 2,083
88
votes
8 answers
Heartbleed: how to reliably and portably check the OpenSSL version?
I was looking at a reliable and portable way to check the OpenSSL version on GNU/Linux and other systems, so users can easily discover if they should upgrade their SSL because of the Heartbleed bug.
I thought it would be easy, but I quickly ran into…
Martijn
- 833
88
votes
8 answers
zcat/gzcat works in linux, not on osx. general linux/osx compatibility
First the specific problem:
In linux, I use zcat to list a .zip file. In osx, zcat seems to automatically append .Z to the file name. Various people suggest replacing zcat with gzcat; however, gzcat complains that the file is not in gzip format!…
user23398
- 1,231
88
votes
1 answer
Explanation of nodev and nosuid in fstab
I see those two options constantly suggested on the web when someone describes how to mount a tmpfs or ramfs. Often also with noexec but I'm specifically interested in nodev and nosuid. I basically hate just blindly repeating what somebody…
Ivan Kovacevic
- 1,851