<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>LosByers- Interesting Musings Helpful Hints from a Unix System Administrator &#187; Web</title>
	<atom:link href="http://losbyers.com/wordpress/tag/web/feed/" rel="self" type="application/rss+xml" />
	<link>http://losbyers.com/wordpress</link>
	<description>All the info I need</description>
	<lastBuildDate>Wed, 01 Sep 2010 19:48:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Importance of Color for business and web sites.</title>
		<link>http://losbyers.com/wordpress/2010/01/importance-of-color-for-business-and-web-sites/</link>
		<comments>http://losbyers.com/wordpress/2010/01/importance-of-color-for-business-and-web-sites/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 14:35:47 +0000</pubDate>
		<dc:creator>LosByers</dc:creator>
				<category><![CDATA[Business Help]]></category>
		<category><![CDATA[Web Related]]></category>
		<category><![CDATA[Color]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://losbyers.com/wordpress/?p=137</guid>
		<description><![CDATA[Importance of Color in Business 
<p>Posted by  Megan Dorn under Random thoughts, Small  Business </p>
<p>Colors do  more than make your business or product look pretty. They actually have a real  impact on consumers’ perceptions of your business, which can in turn have an  impact on your sales and revenue. I [...]]]></description>
			<content:encoded><![CDATA[<h2><strong><span style="font-family: Times New Roman; font-size: large;"><span style="font-size: 18pt;"><a title="Permanent Link: Importance of Color in Business" href="http://startup.partnerup.com/2009/04/16/importance-of-color-in-business/" target="_blank">Importance of Color in Business</a> </span></span></strong></h2>
<p><span style="font-family: Times New Roman; font-size: small;"><span style="font-size: 12pt;">Posted by  Megan Dorn under <a title="View all posts in Random thoughts" href="http://startup.partnerup.com/category/random-thoughts/" target="_blank">Random thoughts</a>, <a title="View all posts in Small Business" href="http://startup.partnerup.com/category/small-business/" target="_blank">Small  Business</a> </span></span></p>
<p><span style="font-family: Times New Roman; font-size: small;"><span style="font-size: 12pt;">Colors do  more than make your business or product look pretty. They actually have a real  impact on consumers’ perceptions of your business, which can in turn have an  impact on your sales and revenue. I read in a post on the <a href="http://www.toiletpaperentrepreneur.com/blog/how-important-is-color-in-business-one-word-extremely" target="_blank">Toilet Paper Entrepreneur</a> recently that “research reveals  people make a subconscious judgment about a person, environment or product  within 90 seconds of initial viewing, and between 62% and 90% of that assessment  is based on color.” </span></span></p>
<p><span style="font-family: Times New Roman; font-size: small;"><span style="font-size: 12pt;">Basically  what it comes down to is that color is probably much more important to your  business than you think, and it pays to know what you’re doing in that  department. You don’t have to be a color strategist (yeah, that’s an actual job)  to be effective in your use of color, but you should probably know the basics  regarding what different colors convey. So here they are: </span></span></p>
<ul type="disc">
<li><span style="font-family: Times New Roman; font-size: small;"><span style="font-size: 12pt;">Red=Love and Passion </span></span></li>
<li><span style="font-family: Times New Roman; font-size: small;"><span style="font-size: 12pt;">Orange=Enthusiasm and Creativity </span></span></li>
<li><span style="font-family: Times New Roman; font-size: small;"><span style="font-size: 12pt;">Yellow=Cheerfulness and Optimism </span></span></li>
<li><span style="font-family: Times New Roman; font-size: small;"><span style="font-size: 12pt;">Green=Natural and Refreshing </span></span></li>
<li><span style="font-family: Times New Roman; font-size: small;"><span style="font-size: 12pt;">Blue=Peace and Tranquility </span></span></li>
<li><span style="font-family: Times New Roman; font-size: small;"><span style="font-size: 12pt;">Purple=Luxury and Sophistication </span></span></li>
<li><span style="font-family: Times New Roman; font-size: small;"><span style="font-size: 12pt;">Pink=Romance and Femininity </span></span></li>
<li><span style="font-family: Times New Roman; font-size: small;"><span style="font-size: 12pt;">White=Innocence and Purity </span></span></li>
<li><span style="font-family: Times New Roman; font-size: small;"><span style="font-size: 12pt;">Black=Authority and Power </span></span></li>
<li><span style="font-family: Times New Roman; font-size: small;"><span style="font-size: 12pt;">Brown=Reliability and Masculinity </span></span></li>
</ul>
<p><span style="font-family: Times New Roman; font-size: small;"><span style="font-size: 12pt;">Color  should be taken into consideration in all sorts of aspects of business. Look at  your logo, marketing collateral, office paint colors, and even what you wear to  meetings. It all conveys a certain message. So is your color scheme conveying  the image you’re trying to project? </span></span></p>
<p><span style="font-family: Times New Roman; font-size: small;"><span style="font-size: 12pt;"> </span></span></p>
<p><strong><span style="font-family: Times New Roman; font-size: small;"><span style="font-weight: bold; font-size: 12pt;">Best Source for Meaning of  Colors:</span></span></strong></p>
<p><span style="font-family: Times New Roman; font-size: small;"><span style="font-size: 12pt;"> </span></span></p>
<p><span style="font-family: Times New Roman; font-size: small;"><span style="font-size: 12pt;"><a href="http://www.color-wheel-pro.com/color-meaning.html" target="_blank">http://www.color-wheel-pro.com/color-meaning.html</a><br />
<a href="http://www.color-wheel-pro.com/color-schemes.html" target="_blank">http://www.color-wheel-pro.com/color-schemes.html</a><br />
<a href="http://www.color-wheel-pro.com/color-theory-basics.html" target="_blank">http://www.color-wheel-pro.com/color-theory-basics.html</a></span></span></p>
<p><span style="font-family: Times New Roman; font-size: small;"><span style="font-size: 12pt;">If you have chosen a certain color it would be useful to know all of the complementary colors as you rarely will use just one color. Check out the following sites to get an idea of colors.</span></span></p>
<p><a href="http://www.colorschemer.com/online.html" target="_blank">http://www.colorschemer.com/online.html</a></p>
<p>I also found  this site that gives an example of what a blog may look like using the main color  you have chosen.<br />
<a href="http://colorschemedesigner.com/" target="_blank">http://colorschemedesigner.com/</a></p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Flosbyers.com%2Fwordpress%2F2010%2F01%2Fimportance-of-color-for-business-and-web-sites%2F&amp;linkname=Importance%20of%20Color%20for%20business%20and%20web%20sites."><img src="http://losbyers.com/wordpress/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://losbyers.com/wordpress/2010/01/importance-of-color-for-business-and-web-sites/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Free Online Mind Mapping software</title>
		<link>http://losbyers.com/wordpress/2009/12/free-online-mind-mapping-software/</link>
		<comments>http://losbyers.com/wordpress/2009/12/free-online-mind-mapping-software/#comments</comments>
		<pubDate>Wed, 30 Dec 2009 20:52:45 +0000</pubDate>
		<dc:creator>LosByers</dc:creator>
				<category><![CDATA[Business Help]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://losbyers.com/wordpress/?p=107</guid>
		<description><![CDATA[<p>There are many solutions on the net for mind mapping software.</p>
<p>I have tried a few and the one that seems the simplest to use and has collaborative abilities and excellent exporting formats is  Mind42.com.  Manage all your ideas, whether alone, twosome or working together with the whole world &#8211; collaborative, browser-based and for free.</p>
<p>Using a [...]]]></description>
			<content:encoded><![CDATA[<p><span>There are many solutions on the net for mind mapping software.</span></p>
<p>I have tried a few and the one that seems the simplest to use and has collaborative abilities and excellent exporting formats is  <a href="http://mind42.com/" target="_blank">Mind42.com</a>.  Manage all your ideas, whether alone, twosome or working together with the whole world &#8211; collaborative, browser-based and for free.</p>
<p>Using a mind map is a great way to build an org chart or brain storm an idea.  It can even help create something as simple as a to-do list.</p>
<div id="attachment_108" class="wp-caption aligncenter" style="width: 860px"><img class="size-full wp-image-108" title="mindmap_showcase1" src="http://losbyers.com/wordpress/wp-content/uploads/2009/12/showcase1.jpg" alt="Mindmap Example" width="850" height="260" /><p class="wp-caption-text">Mindmap Example</p></div>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Flosbyers.com%2Fwordpress%2F2009%2F12%2Ffree-online-mind-mapping-software%2F&amp;linkname=Free%20Online%20Mind%20Mapping%20software"><img src="http://losbyers.com/wordpress/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://losbyers.com/wordpress/2009/12/free-online-mind-mapping-software/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Free Online Project Management software</title>
		<link>http://losbyers.com/wordpress/2009/12/free-online-project-management-software/</link>
		<comments>http://losbyers.com/wordpress/2009/12/free-online-project-management-software/#comments</comments>
		<pubDate>Wed, 30 Dec 2009 20:47:18 +0000</pubDate>
		<dc:creator>LosByers</dc:creator>
				<category><![CDATA[Business Help]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://losbyers.com/wordpress/?p=105</guid>
		<description><![CDATA[<p> Easy Projects.NET feels like a complete desktop application. Each project includes time and billing, message boards for cross-team collaboration, file attachments, reporting tools, and an elegant, interactive Gantt chart that compares favorably with desktop apps like Microsoft Project.</p>
<p>Check the BNET Article.</p>
<p>Go straight to the Easy Projects Web Page.</p>
<p></p>
]]></description>
			<content:encoded><![CDATA[<p><span> Easy Projects.NET feels like a complete desktop application. Each project includes time and billing, message boards for cross-team collaboration, file attachments, reporting tools, and an elegant, interactive Gantt chart that compares favorably with desktop apps like Microsoft Project.</p>
<p>Check the <a href="http://blogs.bnet.com/businesstips/?p=5298&amp;tag=nl.rSINGLE" target="_blank">BNET Article.</a></p>
<p>Go straight to the <a href="http://www.easyprojects.net/index.asp" target="_blank">Easy Projects Web Page</a>.</p>
<p><img title="Arrow" src="http://www.losbyers.com/modules/Forums/images/smiles/icon_arrow.gif" border="0" alt="Arrow" /></span></p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Flosbyers.com%2Fwordpress%2F2009%2F12%2Ffree-online-project-management-software%2F&amp;linkname=Free%20Online%20Project%20Management%20software"><img src="http://losbyers.com/wordpress/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://losbyers.com/wordpress/2009/12/free-online-project-management-software/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get Your Name on Every Social Network</title>
		<link>http://losbyers.com/wordpress/2009/12/get-your-name-on-every-social-network/</link>
		<comments>http://losbyers.com/wordpress/2009/12/get-your-name-on-every-social-network/#comments</comments>
		<pubDate>Wed, 30 Dec 2009 20:43:22 +0000</pubDate>
		<dc:creator>LosByers</dc:creator>
				<category><![CDATA[Business Help]]></category>
		<category><![CDATA[Web Related]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://losbyers.com/wordpress/?p=100</guid>
		<description><![CDATA[<p>One of the biggest advantages of social media is the ability to get your brand Web-wide recognition among very active consumers across any number of niches, large and small. One of the biggest disadvantages is the massive amount of time it takes to get these profiles set up and keep them maintained. You can also [...]]]></description>
			<content:encoded><![CDATA[<p><span>One of the biggest advantages of social media is the ability to get your brand Web-wide recognition among very active consumers across any number of niches, large and small. One of the biggest disadvantages is the massive amount of time it takes to get these profiles set up and keep them maintained. You can also run into problems when someone else has squatted on your brand name within these networks.  KnowEm.com has a solution.</p>
<p>See the <a href="http://www.websitemagazine.com/content/blogs/posts/archive/2009/10/21/get-your-brand-on-every-social-network-with-knowem.aspx" target="_blank">Bnet Article.</a>.</p>
<p>Or go to the <a href="http://knowem.com/" target="_blank">Knowem Web Page</a>.</p>
<p>It&#8217;s sort of awesome to be able to get a list of Social Networking sites broken down into their niche, ie music, video, blogging, etc.  You can then use the information to create your brand in all of the networks if you so desire.  You can also pay Knowem to do it for you if you don&#8217;t feel that you have the time.</span></p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Flosbyers.com%2Fwordpress%2F2009%2F12%2Fget-your-name-on-every-social-network%2F&amp;linkname=Get%20Your%20Name%20on%20Every%20Social%20Network"><img src="http://losbyers.com/wordpress/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://losbyers.com/wordpress/2009/12/get-your-name-on-every-social-network/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Exporting Tomcat SSL keys to Apache httpd</title>
		<link>http://losbyers.com/wordpress/2009/12/exporting-tomcat-ssl-keys-to-apache-httpd/</link>
		<comments>http://losbyers.com/wordpress/2009/12/exporting-tomcat-ssl-keys-to-apache-httpd/#comments</comments>
		<pubDate>Wed, 30 Dec 2009 20:41:37 +0000</pubDate>
		<dc:creator>LosByers</dc:creator>
				<category><![CDATA[Web Related]]></category>
		<category><![CDATA[Windows OS]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://losbyers.com/wordpress/?p=98</guid>
		<description><![CDATA[<p>Apache Tomcat SSL keys created with keytool are, by default, in der format. These keys cannot be used in Apache httpd since httpd, be default, expects the keys in pem(X509) format. Using the below steps you can export the tomcat&#8217;s keys to Apache httpd format and use it for Apache.</p>
<p>I assume that you already have [...]]]></description>
			<content:encoded><![CDATA[<p>Apache Tomcat SSL keys created with keytool are, by default, in <strong>der</strong> format. These keys cannot be used in Apache httpd since httpd, be default, expects the keys in <strong>pem(X509)</strong> format. Using the below steps you can export the tomcat&#8217;s keys to Apache httpd format and use it for Apache.</p>
<p>I assume that you already have a working copy of tomcat with SSL.</p>
<p>If Not follow Verisign&#8217;s instructions on requesting an SSL certificate, then:</p>
<ul>
<li>Create a keystore:   $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA</li>
<li>Import the Intermediate CA Certificate:   keytool -import -alias root -keystore &lt;your_keystore_filename&gt; -trustcacerts -file &lt;filename_of_the_chain_certificate&gt;</li>
<li>Import your SSL Certificate:  keytool -import -alias &lt;your_alias&gt; -keystore &lt;your_keystore_filename&gt; -trustcacerts -file &lt;your_certificate_filename&gt;</li>
</ul>
<p>You will need a copy of the tomcat&#8217;s keystore file and the keystore password.</p>
<p>Let us start&#8230;.</p>
<p>First copy the existing tomcat&#8217;s keystore file to a new directory so that we don&#8217;t break anything that is working.</p>
<p>List the key and verify you know the passphrase.<br />
<span style="color: #008000;"><strong># keytool -list -keystore your.key </strong></span></p>
<p>Now we will export the key in DER format<br />
<span style="color: #008000;"><strong># keytool -export -alias tomcat -keystore tomcat.keystore -file exported-der.crt </strong></span><br />
Enter keystore password:<br />
Output will be: Certificate stored in file</p>
<p>The certificate will be stored in the file called exported-der.crt</p>
<p>Verify the certificate with this command:<br />
<span style="color: #008000;"><strong># openssl x509 -noout -text -in exported-der.crt -inform der </strong></span><br />
Output will be: The whole certificate saying &#8211; who issued it  and other info like your company name etc.</p>
<p>Now Convert the key to PEM format so that apache can understand it:<br />
<span style="color: #008000;"><strong># openssl x509 -out exported-pem.crt -outform pem -in exported-der.crt -inform der </strong></span></p>
<p>The exported key will be in the file exported-pem.crt.</p>
<p>We have exported the public key and now are going to export the private key.</p>
<p>Download a  file called (ExportPrivateKey.zip) from <a href="http://www.anandsekar.com/wp-content/uploads/2006/01/ExportPrivateKey.zip" target="_blank">Anandsekar.com</a></p>
<p>Extract the key<br />
<span style="color: #008000;"><strong># java -jar ExportPrivateKey.zip {keystore_path} JKS {keystore_password} {alias} exported-pkcs8.key </strong></span></p>
<p>The key is in PKCS #8 PEM format. Now run openssl to convert it to the format apache modssl expects the file.<br />
Use a cygwin shell to get a good version of OpenSSL without having to install another application.<br />
# openssl pkcs8 -inform PEM -nocrypt -in exported-pkcs8.key -out exported.key</p>
<p>The Private key is now exported to the file exported.key.</p>
<p>Edit the httpd.conf/httpd-ssl.conf file<br />
<span style="color: #000080;">SSLCertificateFile /root/SSL_export/exported-pem.crt  -&gt; I used the cert from Verisign instead.<br />
SSLCertificateKeyFile /root/SSL_export/exported.key<br />
SSLCertificateChainFile /root/SSL_export/&lt;intermediate&gt;</span></p>
<p>Example:<br />
#Verisign Certificate<br />
SSLCertificateFile &#8220;C:/Program Files/Apache Software Foundation/Apache2.2/conf/cmmssl/cert/cert.crt&#8221;<br />
# Our new key<br />
SSLCertificateKeyFile &#8220;C:/Program Files/Apache Software Foundation/Apache2.2/conf/cmmssl/private/exported.key&#8221;<br />
# The Verisign Intermediary cert file.<br />
SSLCertificateChainFile &#8220;C:/Program Files/Apache Software Foundation/Apache2.2/conf/cmmssl/intermediate/intermediate.crt&#8221;</p>
<p>Restart Apache, with fingers crossed, pixie dust in the air, while the rooster crows, on a full moon, and a live sacrificial chicken waiting on standby.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Flosbyers.com%2Fwordpress%2F2009%2F12%2Fexporting-tomcat-ssl-keys-to-apache-httpd%2F&amp;linkname=Exporting%20Tomcat%20SSL%20keys%20to%20Apache%20httpd"><img src="http://losbyers.com/wordpress/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://losbyers.com/wordpress/2009/12/exporting-tomcat-ssl-keys-to-apache-httpd/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Force Tomcat to HTTPS</title>
		<link>http://losbyers.com/wordpress/2009/12/force-tomcat-to-https/</link>
		<comments>http://losbyers.com/wordpress/2009/12/force-tomcat-to-https/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 17:51:30 +0000</pubDate>
		<dc:creator>LosByers</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Web Related]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://losbyers.com/wordpress/?p=79</guid>
		<description><![CDATA[<p>Need to have http redirect to https within Tomcat.
Here is a good page on setting up SSL for Tomcat tomcat-6.0-doc/ssl-howto.html</p>
<p>1. Change Tomcat&#8217;s server.xml.
(&#60;application&#62;/tomcat/conf/server.xml)
Edit the non-SSL &#60;Connector&#62; entry listening on port 80 and add or
edit the redirectPort atribute to point to the port on which the SSL
&#60;Connector&#62; is listening. By default, the redirectPort was pointing
to port [...]]]></description>
			<content:encoded><![CDATA[<p>Need to have http redirect to https within Tomcat.<br />
Here is a good page on setting up SSL for Tomcat <a href="http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html" target="_blank">tomcat-6.0-doc/ssl-howto.html</a></p>
<p><span style="font-weight: bold;">1.</span> Change Tomcat&#8217;s server.xml.<br />
(&lt;application&gt;/tomcat/conf/server.xml)<br />
Edit the non-SSL &lt;Connector&gt; entry listening on port 80 and add or<br />
edit the redirectPort atribute to point to the port on which the SSL<br />
&lt;Connector&gt; is listening. By default, the redirectPort was pointing<br />
to port 443.  Note: if you have an internal system running SSL on port 21101, for example, and your site uses a global load balancer, then you need to redirect to port 443.  Otherwise, the URL would be rewritten as <a href="https://your.site.com:21101/" target="_blank">https://your.site.com:21101</a> which would fail at the loadbalancer.</p>
<p><span style="font-weight: bold;">Was:</span><br />
<span style="color: #008000;">Connector port=&#8221;80&#8243;<br />
enableLookups=&#8221;false&#8221;<br />
redirectPort=&#8221;8443&#8243;<br />
maxThreads=&#8221;100&#8243;<br />
minSpareThreads=&#8221;100&#8243;<br />
maxSpareThreads=&#8221;100&#8243;</span></p>
<p><span style="font-weight: bold;">Changed to:</span><br />
<span style="color: #008000;">Connector port=&#8221;80&#8243;<br />
enableLookups=&#8221;false&#8221;<br />
redirectPort=&#8221;443&#8243;<br />
maxThreads=&#8221;100&#8243;<br />
minSpareThreads=&#8221;100&#8243;<br />
maxSpareThreads=&#8221;100&#8243; </span></p>
<p><span style="font-weight: bold;">2.</span> Setup a security constraint in the Tomcat web.xml file.<br />
In the Tomcat web.xml file the following &lt;security&gt; has<br />
to be added within the &lt;web&gt; element. This new element must be<br />
added after the &lt;servlet&gt; element: Note: The Tomcat documentation states that https will only be redirected to the Port listed if there is a &lt;security&gt; listed for some path.  I found the best location to add the info is just prior to the last line in the web.xml</p>
<p>Place the following code just above the last line (&lt;/web&gt;) in the web.xml file<br />
(&lt;application&gt;/tomcat/conf/web.xml)</p>
<p><span style="color: #008000;">&lt;pre&gt;&lt;security&gt;<br />
&lt;web&gt;<br />
&lt;web&gt;Application Name&lt;/web&gt;<br />
&lt;url&gt;/*&lt;/url&gt;<br />
&lt;/web&gt;<br />
</span><span style="color: #008000;"> </span><span style="color: #008000;">&lt;user&gt;<br />
&lt;transport&gt;CONFIDENTIAL&lt;/transport&gt;<br />
&lt;/user&gt;<br />
&lt;/security&gt;<br />
</span></p>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 729px; width: 1px; height: 1px;">
<p>Need to have http redirect to https within Tomcat.<br />
Here is a good page on setting up SSL for Tomcat <a href="http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html" target="_blank">tomcat-6.0-doc/ssl-howto.html</a></p>
<p><span style="font-weight: bold;">1.</span> Change Tomcat&#8217;s server.xml.<br />
(&lt;application&gt;/tomcat/conf/server.xml)<br />
Edit the non-SSL &lt;Connector&gt; entry listening on port 80 and add or<br />
edit the redirectPort atribute to point to the port on which the SSL<br />
&lt;Connector&gt; is listening. By default, the redirectPort was pointing<br />
to port 443.  Note: if you have an internal system running SSL on port 21101, for example, and your site uses a global load balancer, then you need to redirect to port 443.  Otherwise, the URL would be rewritten as <a href="https://your.site.com:21101/" target="_blank">https://your.site.com:21101</a> which would fail at the loadbalancer.</p>
<p><span style="font-weight: bold;">Was:</span><br />
<span style="color: #008000;">Connector port=&#8221;80&#8243;<br />
enableLookups=&#8221;false&#8221;<br />
redirectPort=&#8221;8443&#8243;<br />
maxThreads=&#8221;100&#8243;<br />
minSpareThreads=&#8221;100&#8243;<br />
maxSpareThreads=&#8221;100&#8243;</span></p>
<p><span style="font-weight: bold;">Changed to:</span><br />
<span style="color: #008000;">Connector port=&#8221;80&#8243;<br />
enableLookups=&#8221;false&#8221;<br />
redirectPort=&#8221;443&#8243;<br />
maxThreads=&#8221;100&#8243;<br />
minSpareThreads=&#8221;100&#8243;<br />
maxSpareThreads=&#8221;100&#8243; </span></p>
<p><span style="font-weight: bold;">2.</span> Setup a security constraint in the Tomcat web.xml file.<br />
In the Tomcat web.xml file the following &lt;security&gt; has<br />
to be added within the &lt;web&gt; element. This new element must be<br />
added after the &lt;servlet&gt; element: Note: The Tomcat documentation states that https will only be redirected to the Port listed if there is a &lt;security&gt; listed for some path.  I found the best location to add the info is just prior to the last line in the web.xml</p>
<p>Place the following code just above the last line (&lt;/web&gt;) in the web.xml file<br />
(&lt;application&gt;/tomcat/conf/web.xml)</p>
<pre>
<span style="color: #008000;"> </span>
&lt;security&gt;
    &lt;web&gt;
        &lt;web&gt;Application Name&lt;/web&gt;
        &lt;url&gt;/*&lt;/url&gt;
    &lt;/web&gt;
<span style="color: #008000;"> </span><span style="color: #008000;">   &lt;user&gt;
        &lt;transport&gt;CONFIDENTIAL&lt;/transport&gt;
    &lt;/user&gt;
&lt;/security&gt;
</span></pre>
</div>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Flosbyers.com%2Fwordpress%2F2009%2F12%2Fforce-tomcat-to-https%2F&amp;linkname=Force%20Tomcat%20to%20HTTPS"><img src="http://losbyers.com/wordpress/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://losbyers.com/wordpress/2009/12/force-tomcat-to-https/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How-to Add in Apache modules, ie mod_rewrite</title>
		<link>http://losbyers.com/wordpress/2009/12/how-to-add-in-apache-modules-ie-mod_rewrite/</link>
		<comments>http://losbyers.com/wordpress/2009/12/how-to-add-in-apache-modules-ie-mod_rewrite/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 22:08:05 +0000</pubDate>
		<dc:creator>LosByers</dc:creator>
				<category><![CDATA[Web Related]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://losbyers.com/wordpress/?p=77</guid>
		<description><![CDATA[<p>I seem to need this information often enough so I thought I would post it here for safe keeping.</p>
<p>In Apache 2, shared modules must be compiled with the directive:
&#8211;enable-mods-shared=&#8217;rewrite&#8217;</p>
<p>Multiple modules can be configured that way like so:
&#8211;enable-mods-shared=&#8217;rewrite dav dav-fs&#8217;</p>
<p>A simple config string would look like this:
./configure &#8211;prefix=/usr/local/apache &#8211;enable-mods-shared=&#8217;rewrite&#8217;</p>
<p># EVEN if you screwed up and failed [...]]]></description>
			<content:encoded><![CDATA[<p><span>I seem to need this information often enough so I thought I would post it here for safe keeping.</p>
<p>In Apache 2, shared modules must be compiled with the directive:<br />
&#8211;enable-mods-shared=&#8217;rewrite&#8217;</p>
<p>Multiple modules can be configured that way like so:<br />
&#8211;enable-mods-shared=&#8217;rewrite dav dav-fs&#8217;</p>
<p>A simple config string would look like this:<br />
./configure &#8211;prefix=/usr/local/apache &#8211;enable-mods-shared=&#8217;rewrite&#8217;</p>
<p># EVEN if you screwed up and failed to compile it, by using the horribly broken and often incorrectly documented &#8216;&#8211;enable-rewrite&#8217; switch (which DOES NOT WORK: even ./configure &#8211;help and the apache install docs includes this BS compile directive that DOES NOT WORK), ALL IS NOT LOST. You can still compile any modules by changing to the apache source dir and then the sub directories /modules/mappers (for example: /path/to/your/httpd-source/modules/mappers ) and executing the following command:</p>
<p>/usr/local/apache/bin/apxs -cia mod_rewrite.c</p>
<p># This will compile the modules as a &#8220;so&#8221; or &#8220;shared object&#8221;, and add the proper enabling string to your httpd.conf file: LoadModule rewrite_module modules/mod_rewrite.so</p>
<p>The apxs method of compiling in a module should work for most of the modules you may need.  For instance mod_speling is very useful in dealing with mod_rewrite as it is used to ignore case.</p>
<p>I also just thought that I could download the latest XAMPP version from <a href="http://www.apachefriends.org/" target="_blank">www.apachefriends.org</a> and get the modules I need from there.  It may or may not work.</span></p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Flosbyers.com%2Fwordpress%2F2009%2F12%2Fhow-to-add-in-apache-modules-ie-mod_rewrite%2F&amp;linkname=How-to%20Add%20in%20Apache%20modules%2C%20ie%20mod_rewrite"><img src="http://losbyers.com/wordpress/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://losbyers.com/wordpress/2009/12/how-to-add-in-apache-modules-ie-mod_rewrite/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sync Web Servers Script</title>
		<link>http://losbyers.com/wordpress/2009/12/sync-web-servers-script/</link>
		<comments>http://losbyers.com/wordpress/2009/12/sync-web-servers-script/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 17:41:30 +0000</pubDate>
		<dc:creator>LosByers</dc:creator>
				<category><![CDATA[Unix]]></category>
		<category><![CDATA[Web Related]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://losbyers.com/wordpress/?p=74</guid>
		<description><![CDATA[<p>Here is a script I wrote to keep 2 or more web sites in sync.  The data files can be anything under the data tree.
The database is MySQL.</p>
<p>The script works by pulling the latest data and database backup from the production server.  The script can be placed in a cron.
The DR server user should be [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a script I wrote to keep 2 or more web sites in sync.  The data files can be anything under the data tree.<br />
The database is MySQL.</p>
<p>The script works by pulling the latest data and database backup from the production server.  The script can be placed in a cron.<br />
The DR server user should be able to ssh without a password to the production server.  This is accomplished using RSA keys under SSH.</p>
<p>Once both the web site and database are setup, this script pulls the newest files, and latest mysql database backup via rsync.</p>
<p>Change the First set of VARIABLES, and &lt;usernames&gt; and &lt;pathing&gt; where needed.</p>
<p>I should probably have more information on the script here, but I wanted to save a copy somewhere before I forgot about it.</p>
<p>Anyway, my thought is if I setup a primary web server somewhere and want n+1 backend systems I might be able to use this poor-man&#8217;s approach.  If the backed systems need to have database updates then you are looking at database replication.  But, the rsync file copy and all of the rest could be used to make web server production updates to a cluster of systems.  You just update the main instance and all of the slave servers pull the latest information, including a database update script if needed., unix, script</p>
<p><span id="more-74"></span><span style="color: #99cc00;">#!/bin/ksh -x</p>
<p>#######################################<br />
#<br />
# Script to sync Prod web with DR server.<br />
# The script is designed to pull from the<br />
# production server.<br />
#<br />
# 12/2008:  Initial setup.<br />
#        :  Mike Byers<br />
#######################################</p>
<p>PRIME_HOST=&#8217;prod.edmz.com&#8217;                  #Production host<br />
DR_HOST=&#8217;dr-orprod2.edmz.com&#8217;              #DR server<br />
DATABASES=&#8221;mysql DB1 DB2&#8243;                  #database to transfer space sepa<br />
rated<br />
#MYSQLUSER=backup                               #User for database backup<br />
MYSQLUSER=restore                                  #User for database restore<br />
#MYSQLPWD=&#8217;ABC123&#8242;                             #Backup user Password<br />
MYSQLPWD=&#8217;ABC123&#8242;                               #Restore user Password (Restore user needs more DB permissions)<br />
DB_PATH=&#8217;/opt/mysql5/backups&#8217;                 #Path to database backup files<br />
#YESTERDAY=`date +%Y%m%d -d&#8221;1 day ago&#8221;`         #Linux Version<br />
YESTERDAY=`TZ=GMT+24 date +%Y%m%d`              #Solaris Version<br />
TODAY=`date +%Y%m%d`<br />
PATH=$PATH:/opt/mysql5/bin/;export PATH  #Path to mysql binaries</p>
<p>/usr/bin/rsync &#8211;exclude &#8216;configuration.*&#8217; \<br />
&#8211;exclude &#8216;**/logs&#8217; \<br />
&#8211;exclude &#8216;**/modules&#8217; \<br />
&#8211;exclude &#8216;**/conf&#8217; \<br />
&#8211;exclude &#8216;**/bin&#8217; \<br />
-vaue &#8217;ssh -x -C -l &lt;username&gt;&#8217; $PRIME_HOST:apache/htdocs/* /&lt;path&gt;/apache/htdocs/</p>
<p>for DB in $DATABASES<br />
do<br />
/usr/bin/rsync -vaue &#8217;ssh -x -C -l &lt;username&gt;&#8217; $PRIME_HOST:$DB_PATH/$DB-$TODAY.sql.<br />
gz $DB_PATH<br />
#Compare sizes of database backup files to see if anything changed<br />
S1=`du -sk $DB_PATH/$DB-$YESTERDAY.sql.gz | awk &#8216;{ print $1 }&#8217;`<br />
S2=`du -sk $DB_PATH/$DB-$TODAY.sql.gz | awk &#8216;{ print $1 }&#8217;`<br />
if [[ S1 -eq S2 ]]; then<br />
echo &#8220;No update for database $DB needed&#8221;<br />
else<br />
/bin/gunzip &lt; $DB_PATH/$DB-$TODAY.sql.gz | mysql -u $MYSQLUSER -p$MYSQLPWD<br />
$DB<br />
fi<br />
done</span></p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Flosbyers.com%2Fwordpress%2F2009%2F12%2Fsync-web-servers-script%2F&amp;linkname=Sync%20Web%20Servers%20Script"><img src="http://losbyers.com/wordpress/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://losbyers.com/wordpress/2009/12/sync-web-servers-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Overcoming the dreaded SCP/SFTP message errors</title>
		<link>http://losbyers.com/wordpress/2009/12/overcoming-the-dreaded-scpsftp-message-errors/</link>
		<comments>http://losbyers.com/wordpress/2009/12/overcoming-the-dreaded-scpsftp-message-errors/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 17:23:37 +0000</pubDate>
		<dc:creator>LosByers</dc:creator>
				<category><![CDATA[Unix]]></category>
		<category><![CDATA[Web Related]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://losbyers.com/wordpress/?p=62</guid>
		<description><![CDATA[<p>If you have ever used scp or sftp you may have encountered the dreaded ( &#8221;Received message too long&#8221; or &#8220;Bad packet length&#8221; &#8221;) errors.</p>
<p>This is typically due to something being echo&#8217;d or sent back to your login attempt.</p>
<p>Usually, it&#8217;s something you have in your .profile or .bashrc login files.</p>
<p>Just add the following to the [...]]]></description>
			<content:encoded><![CDATA[<p><span>If you have ever used scp or sftp you may have encountered the dreaded ( &#8221;Received message too long&#8221; or &#8220;Bad packet length&#8221; &#8221;) errors.</p>
<p>This is typically due to something being echo&#8217;d or sent back to your login attempt.</p>
<p>Usually, it&#8217;s something you have in your .profile or .bashrc login files.</p>
<p>Just add the following to the very top of your login shell settings file.</p>
<p><strong><span style="font-weight: bold;">if [ ${TERM} == "dumb" ]; then<br />
return<br />
fi</span></strong></p>
<p>This will exit out of running the login shell commands if you login using a &#8220;dumb&#8221; terminal.</span></p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Flosbyers.com%2Fwordpress%2F2009%2F12%2Fovercoming-the-dreaded-scpsftp-message-errors%2F&amp;linkname=Overcoming%20the%20dreaded%20SCP%2FSFTP%20message%20errors"><img src="http://losbyers.com/wordpress/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://losbyers.com/wordpress/2009/12/overcoming-the-dreaded-scpsftp-message-errors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Search Tricks</title>
		<link>http://losbyers.com/wordpress/2009/12/google-search-tricks/</link>
		<comments>http://losbyers.com/wordpress/2009/12/google-search-tricks/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 17:20:19 +0000</pubDate>
		<dc:creator>LosByers</dc:creator>
				<category><![CDATA[Web Related]]></category>
		<category><![CDATA[trick]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://losbyers.com/wordpress/?p=59</guid>
		<description><![CDATA[<p>Looking for a song, artist, movie or software that you want to check out before purchasing?</p>
<p>Use the following Google search, all on one line.</p>
<p>&#8220;Your Key Words&#8221; inanchor:&#8221;rapidshare&#124;megaupload&#8221; -torrent -inurl:&#8221;rapid&#124;rapidshare&#124;megaupload&#8221; </p>
<p>Key:
&#8220;Your Key Words&#8221; = What you are searching for inside quotes, ie &#8220;No Doubt&#8221;.
&#8220;rapidshare&#124;megaupload&#8221; = 2 heavily used downloading sites, replace as needed.
-torrent = remove any [...]]]></description>
			<content:encoded><![CDATA[<p>Looking for a song, artist, movie or software that you want to check out before purchasing?</p>
<p>Use the following Google search, all on one line.</p>
<p><span style="color: #ff0000;">&#8220;Your Key Words&#8221; inanchor:&#8221;rapidshare|megaupload&#8221; -torrent -inurl:&#8221;rapid|rapidshare|megaupload&#8221; </span></p>
<p>Key:<br />
&#8220;Your Key Words&#8221; = What you are searching for inside quotes, ie &#8220;No Doubt&#8221;.<br />
&#8220;rapidshare|megaupload&#8221; = 2 heavily used downloading sites, replace as needed.<br />
-torrent = remove any sites that have the word torrent in them, add any other word to remove if desired or if returned results need to be narrowed.<br />
-inurl = Skip any sites that then the keywords that follow in the internet address (URL) themselves.</p>
<p>This search will find your Key Words that are linked to either rapidshare or megaupload downloading sites.<br />
If you have other favorite downloading sites you can replace both download names in the search to be able to find links to another site.</p>
<p>This search is different than a site like <a href="http://www.filesbot.com/" target="_blank">Filesbot</a>.  Filesbot searches for the keyword as a filename at Rapidshare.  Typically the file will be removed from the upload site if it&#8217;s copyrighted as per the upload sites rules.  The search I give above skips the upload site itself and only looks for links on the net that link back to the upload site.  So if a forum somewhere has a link to &#8220;The Beatles&#8221;, but the file is called TB1234.rar on rapidshare, my Google search will find it, but Filesbot won&#8217;t.</p>
<p>I have also added the &#8220;-torrent&#8221; so that you don&#8217;t get the Bizzillion web sites that index Bit Torrent files, but don&#8217;t really give you a link anywhere, as well as the -inurl sites.  Those types of sites are just traps for endless clicking and/or internet spyware and trojans.  I should have included a removal of the keywords &#8220;hack&#8221; and/or &#8220;warez&#8221; as those types of sites are typically useless, but there is a hard 10 word limit on Google searches.</p>
<p>I was looking for a list of the file sharing sites, but found a few sites that will also assist in searching for files.<br />
* <a href="http://www.shareminer.com/" target="_blank">ShareMiners</a><br />
* <a href="http://www.findanylinks.com/" target="_blank">SharedFilesSearch</a><br />
* <a href="http://www.oneclickfiles.com/" target="_blank">OneClickFiles</a></p>
<p>There are many others, as well as many different downloading sites.  I couldn&#8217;t find a good list of downloading type sites.</p>
<p>Getting around the download timeouts is up to you to figure out.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Flosbyers.com%2Fwordpress%2F2009%2F12%2Fgoogle-search-tricks%2F&amp;linkname=Google%20Search%20Tricks"><img src="http://losbyers.com/wordpress/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://losbyers.com/wordpress/2009/12/google-search-tricks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
