Recently, I used the cheap and easy http redirects from my apache
server to my tomcat
server. I ran into two issues, that I hope someone is able to guide
me to a better solution
First, I wanted to have the user not have to know about port 8080, and
to have the root
of the apache redirect to the tomcat servlet running. So for my
apache, I had the
redirect of (in the httpd-vhosts.conf file)
redirect "/" "http"//digital.maag.ysu.edu/jspui"
Then I had a ProxyPass in the httpd.conf file:
ProxyPass /jspui http://digital.maag.ysu.edu/jspui
ProxyPassReverse /jspui http://digital.maag.ysu.edu/jspui
ProxVia on
In my Tomcat server.xml file I had:
<Connector port="8080" protocol="HTTP/1.1"
proxyName="digital.maag.ysu.edu" proxyPort="80"
connectionTimeout="20000"
redirectPort="8443"
URIEncoding="UTF-8" />
<!-- A "Connector" using the shared thread pool-->
I ran into two problems:
1. I would see in my apache logs a request that would have the
following
"....."GET /jspuijspuijspuijspuijspuijspuijspuijspuijspui
"...."GET /
jspuijspuijspuijspuijspuijspuijspuijspuijspuijspuijspuijspuijspuijspuijspuijspuijspuijspuijspuijspuijspuijspuijspuijspuijspuijspuijspuijspuijspuijspuijspui
Infinitum....
What is causing this and how do I solve it?
2. After setting up the ProxyPass and such, I couldn't figure out how
to use other servlet directories beside the "jspui" directory. So, if
I had
say two directies in the webapps, was/is it possible to redirect to
them?
Thanks in advance. Any questions, please ask.
Jeffrey Trimble
System LIbrarian
William F. Maag Library
Youngstown State University
330.941.2483 (Office)
jtrim...@cc.ysu.edu
http://www.maag.ysu.edu
http://digital.maag.ysu.edu
"I must not fear. Fear is the mind-killer.
I will permit it to pass over me and through me..."
--Litany against fear....