768 reputation
45
bio website olafkock.de
location Hamburg, Germany
age
visits member for 5 years, 2 months
seen Apr 8 at 11:53
maintaining pebble, a lightweight Java blogging engine.

Mar
5
answered Picking up the pieces after missing Linux admin
Feb
26
answered git pull specific revision from remote repository
Feb
20
comment I need to rewrite https://domain.com => https://www.domain.com because of wildcard SSL
Also, you might be able to get both, the wildcard and the toplevel domain in just one certificate - see the answers to serverfault.com/questions/87005/…. I've not tried that, but this way you could work with just one certificate (and on the same IP address) instead of requiring an extra IP address just for the top level address.
Feb
20
comment I need to rewrite https://domain.com => https://www.domain.com because of wildcard SSL
One could argue that it's rather "fortunate" that the client checks itself, not unfortunate. If the redirect could happen prior to SSL negotiation, traffic would obviously not be encrypted and a man in the middle could redirect the client anywhere they want to. This extra certificate usually costs money, which is unfortunate :)
Feb
20
comment Prevent direct call of a file
Great example. There's no 100% solution, but this comes as close as it gets, as the referer header is not mandatory and would be easy to tweak, though not in situations mentioned in the question. +1
Feb
14
answered localhost name error with linux machines
Feb
14
answered localhost name error with linux machines
Feb
4
answered SSL site not using the correct IP in Apache and Ubuntu
Feb
4
answered Multiple SSL domains with one IP address but different ports?
Feb
4
comment Ubuntu 9.10 cron script 'ec2-consistent-snapshot' unable to execute and access files
with PATH being set to /home/ubuntu: Is your .awssecret located in /home/ubuntu or in /root? I believe it should be in /root when you execute this way as root. You could also define HOME the same way as you do SHELL or PATH - I didn't mention this earlier
Feb
4
comment Ubuntu 9.10 cron script 'ec2-consistent-snapshot' unable to execute and access files
You could also use 'sudo -H'. In 'man sudo' it says: "The -H (HOME) option sets the HOME environment variable to the homedir of the target user (root by default) as specified in passwd(5). By default, sudo does not modify HOME (see set_home and always_set_home in sudoers(5))."
Feb
4
comment Ubuntu 9.10 cron script 'ec2-consistent-snapshot' unable to execute and access files
see the edited answer for this.
Feb
4
revised Ubuntu 9.10 cron script 'ec2-consistent-snapshot' unable to execute and access files
Add answer to question from comment; added 4 characters in body
Feb
4
comment Ubuntu 9.10 cron script 'ec2-consistent-snapshot' unable to execute and access files
well, try 'sudo echo $HOME'
Feb
4
answered Ubuntu 9.10 cron script 'ec2-consistent-snapshot' unable to execute and access files
Jan
31
answered If subdomain not exists
Jan
20
comment How do companies know they've been hacked?
LOL - nice way to start the day :)
Dec
23
comment List of files installed from apt package
:) I was not completely sure if this was historical knowledge. However, +1 to Raphinks more thourough answer - haven't seen this before I posted...
Dec
23
answered List of files installed from apt package
Dec
22
answered Malicious Script on LAMP Server