<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.theeggeadventure.com/wikimedia/index.php?action=history&amp;feed=atom&amp;title=Sun_One_Reverse_Proxy_to_Tomcat</id>
	<title>Sun One Reverse Proxy to Tomcat - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.theeggeadventure.com/wikimedia/index.php?action=history&amp;feed=atom&amp;title=Sun_One_Reverse_Proxy_to_Tomcat"/>
	<link rel="alternate" type="text/html" href="https://www.theeggeadventure.com/wikimedia/index.php?title=Sun_One_Reverse_Proxy_to_Tomcat&amp;action=history"/>
	<updated>2026-05-16T03:44:44Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.0-beta</generator>
	<entry>
		<id>https://www.theeggeadventure.com/wikimedia/index.php?title=Sun_One_Reverse_Proxy_to_Tomcat&amp;diff=1784&amp;oldid=prev</id>
		<title>Egge: New page: The goal of this exercise is to get a Sun One 6.1 Web Server configured as a reverse proxy, forwarding certain requests to the app server, running Apache Tomcat 6.0.14.  First, I need to i...</title>
		<link rel="alternate" type="text/html" href="https://www.theeggeadventure.com/wikimedia/index.php?title=Sun_One_Reverse_Proxy_to_Tomcat&amp;diff=1784&amp;oldid=prev"/>
		<updated>2007-10-31T06:43:13Z</updated>

		<summary type="html">&lt;p&gt;New page: The goal of this exercise is to get a Sun One 6.1 Web Server configured as a reverse proxy, forwarding certain requests to the app server, running Apache Tomcat 6.0.14.  First, I need to i...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The goal of this exercise is to get a Sun One 6.1 Web Server configured as a reverse proxy, forwarding certain requests to the app server, running Apache Tomcat 6.0.14.&lt;br /&gt;
&lt;br /&gt;
First, I need to install Tomcat.  I&amp;#039;ve downloaded it to my install directory.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;geshi lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
$ cd install/&lt;br /&gt;
$ gunzip apache-tomcat-6.0.14.tar.gz &lt;br /&gt;
$ tar xvf apache-tomcat-6.0.14.tar &lt;br /&gt;
$ mv apache-tomcat-6.0.14 ../&lt;br /&gt;
$ cd ..&lt;br /&gt;
$ ln -s apache-tomcat-6.0.14 tomcat&lt;br /&gt;
$ tomcat/bin/startup.sh &lt;br /&gt;
# I&amp;#039;ll add this to my .bashrc later&lt;br /&gt;
$ export JAVA_HOME=/usr/java&lt;br /&gt;
$ tomcat/bin/startup.sh &lt;br /&gt;
Using CATALINA_BASE:   /export/home/begge1/apache-tomcat-6.0.14&lt;br /&gt;
Using CATALINA_HOME:   /export/home/begge1/apache-tomcat-6.0.14&lt;br /&gt;
Using CATALINA_TMPDIR: /export/home/begge1/apache-tomcat-6.0.14/temp&lt;br /&gt;
Using JRE_HOME:       /usr/java&lt;br /&gt;
&amp;lt;/geshi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I&amp;#039;m going to copy some files over from box1, so I&amp;#039;ll have something to look at once I get it working&lt;br /&gt;
&amp;lt;geshi lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
$ rsync -avz build/reports/cobertura box2:~/tomcat/webapps/ROOT/&lt;br /&gt;
&amp;lt;/geshi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A quick check of &amp;lt;code&amp;gt;http://box2:8080/cobertura/&amp;lt;/code&amp;gt; in the browser shows everything is working well.&lt;br /&gt;
&lt;br /&gt;
Next, I need to configure my Sun ONE web server.  Fortunately, there&amp;#039;s a good [http://www.sun.com/blueprints/1103/817-4402.pdf guide] for this.  [http://docs.sun.com/app/docs/doc/820-0262/funcs?a=view This] seems to be a more useful guide.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hint to reset the password to blank.  I ended not really using the admin console.&lt;br /&gt;
&amp;lt;geshi lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
$ diff admpw.bak admpw&lt;br /&gt;
1c1&lt;br /&gt;
&amp;lt; admin:{SHA}Ngim0aBauiPqOQ5fO0ggPbtyQfc=&lt;br /&gt;
\ No newline at end of file&lt;br /&gt;
---&lt;br /&gt;
&amp;gt; admin:&lt;br /&gt;
&amp;lt;/geshi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I made these changes to the config files&lt;br /&gt;
&amp;lt;geshi lang=&amp;quot;diff&amp;quot;&amp;gt;&lt;br /&gt;
diff -u WebServer6.1.orig/https-myserver/config/magnus.conf WebServer6.1/https-myserver/config/magnus.conf&lt;br /&gt;
--- WebServer6.1.orig/https-myserver/config/magnus.conf       2007-10-31 16:32:12.903619200 +1100&lt;br /&gt;
+++ WebServer6.1/https-myserver/config/magnus.conf    2007-10-31 17:15:50.724017300 +1100&lt;br /&gt;
@@ -17,3 +17,6 @@&lt;br /&gt;
 &lt;br /&gt;
+&lt;br /&gt;
+# reverse proxy module&lt;br /&gt;
+Init fn=&amp;quot;load-modules&amp;quot; shlib=&amp;quot;C:/Sun/WebServer6.1/plugins/passthrough/passthrough.dll&amp;quot;&lt;br /&gt;
diff -u WebServer6.1.orig/https-myserver/config/obj.conf WebServer6.1/https-myserver/config/obj.conf&lt;br /&gt;
--- WebServer6.1.orig/https-myserver/config/obj.conf  2007-10-31 16:32:13.059876200 +1100&lt;br /&gt;
+++ WebServer6.1/https-myserver/config/obj.conf       2007-10-31 17:33:47.115987500 +1100&lt;br /&gt;
@@ -5,6 +5,7 @@&lt;br /&gt;
 # problems. See the documentation for more information.&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;Object name=&amp;quot;default&amp;quot;&amp;gt;&lt;br /&gt;
+NameTrans fn=&amp;quot;assign-name&amp;quot; from=&amp;quot;/cobertura(|/*)&amp;quot; name=&amp;quot;box2&amp;quot; &lt;br /&gt;
 NameTrans fn=&amp;quot;ntrans-j2ee&amp;quot; name=&amp;quot;j2ee&amp;quot;&lt;br /&gt;
 NameTrans fn=&amp;quot;pfx2dir&amp;quot; from=&amp;quot;/mc-icons&amp;quot; dir=&amp;quot;C:/Sun/WebServer61/ns-icons&amp;quot; name=&amp;quot;es-internal&amp;quot;&lt;br /&gt;
 NameTrans fn=&amp;quot;document-root&amp;quot; root=&amp;quot;$docroot&amp;quot;&lt;br /&gt;
@@ -45,11 +46,15 @@&lt;br /&gt;
 Output fn=&amp;quot;insert-filter&amp;quot; filter=&amp;quot;http-compression&amp;quot;&lt;br /&gt;
 &amp;lt;/Object&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
+# Execute these instructions for any resource with the assigned name&lt;br /&gt;
+# &amp;quot;box2&amp;quot;&lt;br /&gt;
+&amp;lt;Object name=&amp;quot;box2&amp;quot;&amp;gt;&lt;br /&gt;
+           &lt;br /&gt;
+# Proxy the requested resource to the URL&lt;br /&gt;
+&lt;br /&gt;
+Service fn=&amp;quot;service-passthrough&amp;quot;&lt;br /&gt;
+        servers=&amp;quot;http://box2:8080/cobertura&amp;quot;&lt;br /&gt;
+        &lt;br /&gt;
+&amp;lt;/Object&amp;gt;&lt;br /&gt;
\ No newline at end of file&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/geshi&amp;gt;&lt;/div&gt;</summary>
		<author><name>Egge</name></author>
	</entry>
</feed>