Most Popular
1500 questions
95
votes
2 answers
Should CNAME Be Used For Subdomains?
I manage multiple websites that currently have the following DNS configuration:
example.com - A Record - Production Server IP
test.example.com - A Record - Test Server IP
www.example.com - CNAME - example.com
beta.example.com - CNAME -…
Joseph Sturtevant
- 1,274
- 3
- 15
- 17
95
votes
4 answers
Difference between `curl -I` and `curl -X HEAD`
I was watching the funny server type from http://www.reddit.com with curl -I http://www.reddit.com when I guessed that curl -X HEAD http://www.reddit.com would do the same. But, in fact, it doesn't.
I'm curious about why.
This is what I observe…
chmeee
- 7,370
- 3
- 30
- 43
95
votes
9 answers
How can I fully log all bash scripts actions?
From my script output I want to capture ALL the logs data with error messages and redirect them all to log file.
I have script like below:
#!/bin/bash
(
echo " `date` : part 1 - start "
ssh -f [email protected] 'bash…
BlueMark
- 1,089
- 1
- 9
- 8
94
votes
1 answer
What is ADFS (Active Directory Federation Services)?
So I've been told that our PHP application may need to support authentication using ADFS.
For a non-Microsoft person, what is ADFS?
How does it differ to things like LDAP?
How does it work? What kind of information would be included in a typical…
Simon East
- 1,514
- 1
- 15
- 18
94
votes
3 answers
Is it possible to reboot a Linux OS without rebooting the hardware?
Is there a way to reboot a Linux system (Debian in particular) without rebooting the hardware?
I have a RAID controller that takes a bit to get itself running before the OS starts up, and I would like it if there was a way to quickly reboot the…
lacrosse1991
- 1,437
- 5
- 20
- 26
94
votes
4 answers
dpkg-reconfigure: unable to re-open stdin: No file or directory
I am building a provisioning script for a ubuntu vagrant vm, on a ubuntu host, both 12.10 64bit When installing the following packages:
sudo apt-get -y install php5-xsl graphviz php-pear unison
I get the warning:
dpkg-reconfigure: unable to re-open…
Daithí
- 1,333
- 1
- 11
- 14
94
votes
6 answers
swap partition vs file for performance?
What is better for performance? A partition closer to the inside of the disk will have slower access times, and we must wait for the drive to switch between the OS and swap partitions.
On the other hand, a swap partition bypasses all of the…
Bill Gray
- 1,345
- 1
- 11
- 18
94
votes
9 answers
GPG does not have enough entropy
I've got a ton of processes running in the background to try and get enough entropy, but I am still failing.
**We need to generate a lot of random bytes. It is a good idea to perform
some other action (type on the keyboard, move the mouse, utilize…
Joey BagODonuts
- 1,635
- 2
- 16
- 16
94
votes
7 answers
My /var/log/btmp file is huge! What should I do?
My /var/log/btmp file is 1.3 GB in size. I've read that the file is "Used to store information about failed login".
What does this mean for my server? And can I delete this file?
Juddling
- 1,075
- 1
- 7
- 11
93
votes
6 answers
How to get a .pem file from ssh key pair?
I created a key pair using ssh-keygen and get the two clasic id_rsa and id_rsa.pub.
I imported the public key into my AWS EC2 account.
Now I created a windows instance and to decrypt that instance password, AWS console is asking me for a .pem file.…
user120858
93
votes
4 answers
Does each subdomain need its own SSL certificate?
I am creating a websocket server which will live on ws.mysite.example. I want the web socket server to be SSL encrypted as well as domain.example to be SSL encrypted. Do I need to purchase a new certificate for each subdomain I create? Do I need a…
user974407
- 1,081
- 1
- 8
- 10
93
votes
2 answers
Add comment to existing SSH public key
I have an existing SSH key (public and private), that was created with ssh-keygen. How can I add a comment to this existing key?
Martin
- 1,213
- 1
- 11
- 10
93
votes
6 answers
How do I create user accounts from the Terminal in Mac OS X 10.5?
I would like to be able to create new users in Mac OS X 10.5 remotely after ssh'ing into the machine. How do I do this?
JR Lawhorne
- 1,221
- 2
- 11
- 12
93
votes
6 answers
Proxy Error 502 "Reason: Error reading from remote server" with Apache 2.2.3 (Debian) mod_proxy and Jetty 6.1.18
Apache is receiving requests at port :80 and proxying them to Jetty at port :8080
The proxy server received an invalid response from an upstream server
The proxy server could not handle the request GET /.
My dilemma: Everything works fine normally…
Martin
93
votes
3 answers
How do I list the files associated with a Python package installed using pip or easy_install?
I've installed a Python package using pip, which is a replacement for easy_install. How do I get a list of which installed files are associated with this package?
Basically, I'm looking for the Python package equivalent of
dpkg -L
or
rpm -ql
Lorin Hochstein
- 5,028
- 15
- 56
- 72