Thursday, February 19, 2015

uses of curl linux command with examples

According to various definitions in the internet, curl is a tool to transfer data from or to a server. I was working with content delivery networks(cdn) and came across this command to get the headers related to the caching of the objects. Later when I checked the use cases, I found it very interesting. So I'm sharing the points here.

Tuesday, February 17, 2015

Writing logs from the port to a custom file in syslog-ng

We are running a log server (syslog-ng). We are receiving the logs from our hardware devices on port 514. The problem is the logs were writing into "/var/log/messages". How can we write this log to a separate dedicated file. Also forwarding this log to an another log server?

Saturday, January 17, 2015

Removing system and version information from apache webserver

Many times when we get a 404 or any other errors from Apache web server we have seen that the error includes which web server it is running, which version it is and what OS the website is running on. This information will invite a lot of attention to "Some" people who would seek for open doors to attack the websites or servers.