In a lot of cases, we have to set particular http headers for objects. For example to set the caching age, caching control etc. How the http headers can be set? This can be done very easily using the Apache web server configuration file.
Monday, May 25, 2015
Thursday, February 19, 2015
According to various definitions in the internet, curl is a tool to transfer data from or to a server. Curl supports the following protocols. DICT, FILE, FTP, FTPS, GOPHER, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMB, SMBS, SMTP, SMTPS, TELNET and TFTP. 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
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? Its better to have a centralized log server which collects logs from all of the other ssytems. So if even one system fails we get the information from the central log server.