You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Pete Helgren <Pe...@valadd.com> on 2009/02/14 00:34:38 UTC
AJP13 Connector and JKOptions
I have a Tomcat application that happily serves up a web app when I use
a URL like this:
http://www.mywebsite.com:8080/MyAPP Which I wanted to change to this:
http://www.mywebsite.com/MyAPP
Using Apache I added the worker.properties file and the following
directives to an existing Apache server that has been serving several sites.
#Tomcat Settings
# Mount the worker containing MyAPP
JKMount /MyAPP myappw
# Globally deny access to the WEB-INF directory
<LocationMatch '.*WEB-INF.*'>
AllowOverride None
deny from all
</LocationMatch>
The pages display but none of the images display and several of the
webapps links are broken. So, something isn't quite right. It is almost
as though the application links aren't relative to the correct root.
I read through the JKOptions for Apache but can't tell if I need to add
one or more options to allow the links to correctly display.
Using Tomcat 5.5 and Apache 2.2 any hints would be appreciated. I have
connected Apache and Tomcat using AJP13 on a different server and I had
no problems. The only difference here is that I am not using a virtual
hosts entry to route to the Tomcat site because this app will display at
the same URL/port as all the other applications in Apache.
Thanks,
Pete
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: AJP13 Connector and JKOptions
Posted by André Warnier <aw...@ice-sa.com>.
Pete Helgren wrote:
[...]
Hi.
Maybe start at the beginning and let us know :
- which version of Tomcat you are running
- on what kind of "box" (the OS)
- with which version of Apache
Then,
- do you have any reason to be using an Apache front-end, other than
wanting to get rid of the ":8080" in your URL links ?
Because if not, then you do not need an Apache front-end to do that.
Just change the port="8080" to port="80" in the HTTP <Connector> element
of your Tomcat's server.xml file, and restart Tomcat.
(But stop Apache first, otherwise they will fight for port 80).
If you have another reason to configure an Apache, then it is a bit more
complicated. But please then provide the requested information first.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org