Redirecting Using CGI.pm

Author: , October 7th, 2010

To generate a redirection header in CGI.pm use the following syntax where $q is the cgi handle: print $q->redirect(‘http://wyzaerd.com/documents/resume.pdf’); If you use redirection like this, you should not print out a header as well. You should always use full URLs (including the http: or ftp: part) in redirection requests. Relative URLs will NOT work correctly.

Late-night compiling

Author: , November 20th, 2009

Just tucked in Naomi, and now I am working on building a website testing program called Siege.

How to Monitor Virtual Web Hosts with Nagios

Author: , October 30th, 2009

The Nagios configuration files are located (for me) in /opt/local/etc/nagios/objects. First, create a new command in commands.cfg file: [code] # ‘check_http_url’ command definition define command{ command_name check_http_url command_line $USER1$/check_http -I $HOSTADDRESS$ -u $ARG1$ -s $ARG2$ } [/code] -u URL to test -s String to expect in the content Then, add a new service to the […]

Certifiable!

Author: , October 16th, 2009

Got the client’s web server to accept secure connections via SSL. I configured Apache httpd.conf properly so it used the right certificate file and it finally started working. I love lsof – what a great tool. Naomi just got home. Time for some TLC for her.

Noon (ish) – Just Ducky!

Author: , October 15th, 2009

Both desktops patched, optimized, shut down and dusted. Noise level in the office is MUCH lower! Have made substantial improvements in the docs. Now looking at https implementation for the developer’s personal web directories. So far so good. Feeling fine.

Apache httpd.conf Directory Wildcard Matching

Author: , September 27th, 2009

<Directory> and </Directory> are used to enclose a group of directives that will apply only to the named directory and sub-directories of that directory. Any directive that is allowed in a directory context may be used. Directory-path is either the full path to a directory, or a wild-card string using Unix shell-style matching. In a wild-card string, ? […]