Archive for the ‘Internet’ Category
Thingitudes no comments
Some random goodness to fill up your Sunday afternoon.
Ever wondered what this RSS stuff is all about? Venture over to Mashable’s “Ultimate RSS Toolbox“, then learn how to keep tabs on just about anything on the Internet as it happens.
And speaking of getting organized, I’ve been toying with Essential PIM the last week or so, and have found it working itself into my daily workflow. Even the free version is very robust, but I’m considering a purchase of the version that will let me run it off a USB drive.
I was pleased to find out that Sitescore thinks relatively well of this web site. Plug in your URL to see what might be keeping you from reaching as many people as possible.
If you find yourself with a nagging itch to play video games, then you must visit 100 of the Best Legal Free Full Version Games You Can Download Online.
Simple Spark is a nicely organized catalog of online web applications, ranging from free to subscription. It is easy to find an application to help you do anything from word processing to accounting to chatting with friends. Pretty slick in and of itself, and it leads you to all the fresh Web2.0 goodness (or crappiness, depending on your point of view).
Enjoy.
Links and News no comments
According to W3Counter, which maintains a pretty good cross sampling of web site users (from what I’ve hear, anyway), the use of Firefox for web surfing has risen to an impressive 25%. That is so great to hear, as Internet Explorer is and continues to be the bane of web developers and designers everywhere. Good riddence, another 10% of IE users!
I have long been a scavenger for the best deals on items I am seeking to purchase. I was pleased to find one tool that encompasses many of the bargain-hunter sites I am used to visiting. Before you buy anything online, be sure to stop at Dealighted.com!
I discovered an excellent streaming radio station at pigradio.com. They play a delectible sampling of alternative and indie music. If you are into that sort of thing, then check it out.
More to come…
The Future of Music no comments
A post over at TechCrunch pretty much sums up my feeling of the music industry today. Things have gotten completely ridiculous, with the RIAA now suing their customer base, strongarming them into settling out of court, and doing all of this based on IP addresses, for crying out loud.
People want music the way it should be - free and good! When will they understand that?
Part II: Setting up Apache, Tomcat, and mod_jk on RHEL4 no comments
After managing to get Tomcat5.5 working with Apache2 using mod_jk, my next venture was to enable SSL using a self-signed certificate in Tomcat. This proved to be quite a task.
The system I’m setting up is running RedHat Enterprise Linux 4.4. I installed all the official RedHat RPM’s to get Tomcat and Apache talking together with mod_jk (see Part I of this tutorial).
After 4 days of banging my head on my keyboard, I noticed that when I would run:
#java -version
It spit out this:
Java(TM) 2 Runtime Environment, Standard Edition (build pxi32dev-20061002a (SR3) )
IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Linux x86-32 j9vmxi3223-20061001 (JIT enabled)
J9VM - 20060915_08260_lHdSMR
JIT - 20060908_1811_r8
GC - 20060906_AA)
JCL - 20061002
This let me know that I am supposed to be using IBM’s version of java, which apparently is the default on my RedHat system, not Sun’s version. I think somewhere along the way I downloaded Sun’s jvm, and I assumed that I was supposed to be using it’s keytool to generate an SLL certificate for Tomcat, but such is not the case. This caused me much confusion, but here’s how I ended up fixing it:
1. Generate Keystore file
(NOTE: all of this assumes you already have Apache configured with SSL. I used OpenSSL, which I don’t go into here, but there are loads of resources online for you, and it’s relatively easy to do).
Assuming you have the default RedHat java rpm already installed, run this:
# /usr/lib/jvm/java-1.5.0-ibm-1.5.0.3/jre/bin/keytool -genkey -alias tomcat -keyalg RSA
NOTE: I used Tomcat’s default password of ‘changeit’ when prompted.
The keystore file gets dropped in the home directory of whatever user you are logged in as. I was root, so I then moved the keystore file to the tomcat home directory:
# mv /root/.keystore /etc/tomcat5/
# chown tomcat.tomcat /etc/tomcat5/.keystore
2. Next you have to edit Tomcat’s server.xml file
# nano /etc/tomcat5/server.xml
Uncomment the SSL connector and set it up like so:
<!-- Define a SSL HTTP/1.1 Connector on port 8443 -->
<connector port="8443" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" disableUploadTimeout="true"
acceptCount="100" scheme="https" secure="true"
clientAuth="false" algorithm="IbmX509" sslProtocol="SSL"
keystoreFile="/etc/tomcat5/.keystore"
keystorePass="changeit" />
Note that I added algorithm=”IbmX509″ and I changed sslProtocol=”TLS” to sslProtocol=”SSL”. This is necessary to get things working with IBM’s jvm.
3. Restart everything
# service tomcat5 stop
# service tomcat5 start
# apachectl restart
If you were following along from my last article, then browse to:
https://yoursite.com:8443/hello.jsp
If all went well, you should see the hello.jsp page showing you the system time!
How To Make Square Corners With CSS no comments
“An epic journey of compassion and liberty that embodies the semantic markup movement in modern web design in an unprecedented paradigm shift to right angled HTML elements.”
Truly a sight to behold. Read this article three times, for it will change your life.
Setting up Apache, Tomcat, and mod_jk on RHEL4 8 comments
I just got through setting up Tomcat5.5, Apache2, and mod_jk on a RedHat Enterprise AS4.4 machine at work. In the past, I have done this by compiling each component separately and fingling with config files until it all worked. But I wanted to stick with RedHat-approved RPM’s from the RedHat network to ease updates and patch management, and to allow the organization to have support options.
I had a lot of trouble finding any documentation on how to do this anywhere, so I thought I’d throw it out here for anyone in a similar situation in search of help.
The following are my notes, sprinkled with a little help I got from a RedHat support tech.
First, I had to enable the following channel within the RedHat Network for this system:
–Red Hat Application Server v. 2 (AS v. 4 for i386)
If you don’t have a RHEL license for updating your system, you will need one.
Once those channels were enabled, I installed the following packages using up2date at the command line:
# up2date tomcat5
# up2date tomcat5-webapps
# up2date tomcat5-admin-webapps
# up2date mod_jk-ap20
With the packages installed, I set out to configure a virtual host to pass requests to Tomcat as needed by using the mod_jk connector. The following steps explain how to do this for a web site called example.com using IP address 123.123.123.123. Substitute your domain and IP accordingly.
Step 1. - Add mod_jk to Apache
In /etc/httpd/conf/httpd.conf add this:
LoadModule jk_module modules/mod_jk.so
<ifmodule mod_jk.c>
JkWorkersFile "/etc/httpd/conf/workers.properties"
JkLogFile "/etc/httpd/logs/mod_jk.log"
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]”
</ifmodule>
That loads the module into Apache, tells apache where the worker is that will handle jsp/servlets, and tells Apache where to record log entries for mod_jk.
Step 2. - create a new file called /etc/httpd/conf/workers.properties and add this to it:
[channel.socket:example.com:8009]
port=8009
host=example.com
[uri:example.com/*.jsp]
worker=ajp13:example.com:8009
Step 3. Create a virtual host in /etc/httpd/conf/httpd.conf like so:
<virtualhost 123.123.123.123:80>
ServerAdmin webmaster@example.com
ServerName www.example.com
DocumentRoot /var/www/html
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
# Deny direct access to WEB-INF
</virtualhost>
Step 4. Set up Tomcat5 by adding this to /etc/tomcat5/server.xml just before the very last </Engine> tag at the bottom of the document:
<host name="example" appBase="/var/www/html" unpackWARs="true" autoDeploy="true">
<context path="" docBase="" debug="0" reloadable="true"/>
<alias>www.example.com</alias>
<valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="web1_access_log." suffix=".txt" pattern="common" resolveHosts="false"/>
</host>
Still with me? We are almost done.
Step 6. Create a sample jsp file called /var/www/html/test.jsp and add this to it:
Time: < %= new java.util.Date() %>
Step 7. Start up the services
# apachectl start
# service tomcat5 start
Step 8. Try it!
Browse to http://www.example.com/test.jsp
If all went well, you should see the system’s current date and time when you load the web page. Congrats. Hope it works for you!