Most Popular
1500 questions
64
votes
3 answers
nginx set variable in location
I am trying to optimize my nginx configs, so it would be possible to set one variable, and all location paths would update automatically. I have four lines in question:
server_name php.domain.com;
root /srv/web/vhosts/php/web;
error_log…
Bogdan Kuštan
- 743
64
votes
7 answers
What's the best way to see logged in users in Windows Server 2012?
Right now I use a powershell script to see the currently logged in users. But I don't see if their session is idle, active or inactive. I can see when the session was started, that's it.
Is there an easy way to see how many users are currently…
RayofCommand
- 1,451
64
votes
2 answers
Can we have multiple CNAMES for a single Name?
I need this for load balancing. For example, I've two azure storage accounts (say a and b) and the blob addresses for those are a.blob.core.windows.net and b.blob.core.windows.net. Both of them store identical data. Now I need to provide a single…
64
votes
12 answers
Loopback to forwarded Public IP address from local network - Hairpin NAT
This is a Canonical Question about Hairpin NAT (Loopback NAT).
The generic form of this question is:
We have a network with clients, a server, and a NAT Router. There is port forwarding on the router to the server so some of it's services are…
adopilot
- 1,531
64
votes
8 answers
What is causing Access Denied when using the aws cli to download from Amazon S3?
I'm really flailing around in AWS trying to figure out what I'm missing here. I'd like to make it so that an IAM user can download files from an S3 bucket - without just making the files totally public - but I'm getting access denied. If anyone can…
Josh Gagnon
- 785
64
votes
3 answers
How should I setup separate MX records for a subdomain?
Let's say I have a domain that I run a web application on, for example cranketywidgets.com, and I'm using Google Apps for handling email for people working on that domain, for example, support@ cranketywidgets.com, jane@cranketywidgets.com,…
Chris Adams
- 709
64
votes
3 answers
Is it possible to on-line shrink a EXT4 volume with LVM?
Today I tried this on my machine with OpenSUSE 12.3 (kernel 3.7):
# resize2fs /dev/mapper/system-srv 2G
resize2fs 1.42.6 (21-Sep-2012)
Filesystem at /dev/mapper/system-srv is mounted on /srv; on-line resizing required
resize2fs: On-line shrinking…
Alicia
- 795
64
votes
7 answers
Is there a way to validate /etc/crontab’s format?
I prefer to stick scheduled tasks in /etc/crontab so I can see at a glance what's scheduled to run, regardless of which user the task runs as.
The only gotcha is that the format isn't validated on save, unlike crontab -e -- so a stray character can…
Ben K.
- 2,439
64
votes
9 answers
How to split a PEM file
Note : This is not really a question because I already found the answer but since I didn't find it easily here I will post it so that it can benefit others.
Question : How to read a concatenated PEM file as the one used by apache/mod_ssl directive…
Cerber
- 1,261
64
votes
7 answers
How to move files with SCP?
How to not copy but move files from one server to another (both Linux)?
man scp didn't give me anything useful. I cannot use 'scp' then 'rm' because I must make sure the file is successfully transferred. If there is any error during transfer, the…
Putnik
- 2,327
64
votes
11 answers
What can cause slow ssh session?
I ssh on remote host but terminal performance is poor. Symbols I am typing are not shown immediately, but with some delay. Sometimes two symbols are shown at one time after delay.
lexsys
- 2,933
- 6
- 31
- 34
64
votes
5 answers
Equivalent of logrotate on OSX
Is logrotate hiding somewhere on OSX, or is there an equivalent? It's not in /usr/sbin.
Steve Bennett
- 5,910
64
votes
8 answers
Rsync : copying over timestamps only
Currently I have two directories A/ and B/ which are identical in every respect, with the exception of the timestamps. Therefore if I run the command :
rsync --dry-run -crvv A/ B/
then all files are marked "uptodate", whereas the command :
rsync…
artella
- 1,049
64
votes
3 answers
How to ignore an error in Powershell and let it continue?
I am trying to see if a process is running on multiple servers and then format it into a table.
get-process -ComputerName server1,server2,server3 -name explorer | Select-Object processname,machinename
Thats the easy part - When the process does not…
Jake
- 2,318
64
votes
9 answers
Creating a virtual machine in VirtualBox from a physical one
Is there any way to create a virtual machine that you can use in VirtualBox from a physical installation that you have? For instance, if I have Windows XP installed on a physical computer and want to have a virtual version of that machine on a…
DHamrick
- 825