Pete Freitag's Homepage

Development SSL / TLS with CommandBox

I've been working on my upcoming Fully Day ColdFusion Security Training Class at CFSummit. The training takes place on a VM which I have preloaded with everything the trainees will need....

Difference between cd - vs cd ~-

Yesterday I posted one of my old (16 years ago) blog entries on twitter, Backtracking with Bash which shows a cool trick you can use to go to the directory you were previously in using cd ~- for example:...

ColdFusion Function Arguments now support Integer

As you may know when you create a function argument that accepts an integer in CFML you can use the type numeric which is good, but possibly not as specific as you would like....

Howto restrict what htaccess files can do on Apache

If you are running Apache 2.4 or greater (and there is a good chance you are these days), then you can make use of a new directive to control exactly which directives can go in the .htaccess files....

Travis CI Error when installing oraclejdk8

Sometime this month builds in TravisCI started failing when you have something like this in your .travis.yml file:

jdk:

- oraclejdk8

The error looks like this:

Installing oraclejdk8

......

Tuning Tomcat IIS Connectors worker.properties and server.xml

Through my consulting practice, I've helped out a number of people with IIS/Tomcat connector issues over the years. Here are some general guidelines you can use to tune the worker.properties and server....

Push Tomcat logs with the AWS CloudWatch Logs Agent

Earlier this week I wrote a tutorial for setting up CloudWatch Logs Agent to run on Ubuntu 18.04 . In that entry I setup the CloudWatch Logs Agent to send the /var/log/syslog file to CloudWatch Logs....

Sending nginx access logs to CloudWatch Logs Agent

Recently I wrote about how to setup the CloudWatch Logs Agent to run on Ubuntu 18.04 . In that entry I setup the agent to push the syslog log file, /var/log/syslog to CloudWatch Logs....

Setup CloudWatch Logs Agent on Ubuntu 18.04 LTS

The AWS CloudWatch Logs Agent can be setup to push logs to the AWS CloudWatch Logs service from any server. In this howto, I'll show you how to set it up on Ubuntu 18.04 LTS, but you should be able to follow similar steps on Ubuntu 16....

Tomcat Virtual Directory Howto

Let's create a Tomcat virtual directory (or Alias) called /my_scripts which points x:\cf\cfusion\wwwroot\cf_scripts\scripts\ by adding the following inside of a <Host> tag in the server....

Communications link failure MySQL JDBC with TLS

Ran into an interesting situation trying to configure a MySQL JDBC driver to connect over TLS (though the driver may call it SSL, TLS is the name for more recent versions of the protocol)....

Redirect www and non https in IIS using web.config

Had the need to setup a web.config file in IIS that would redirect ALL http (non https) and requests for www.example.com to the non-www example.com....
there is more to this site: sitemap