Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

RE: I do not want port 8080. Anyone know how to?

Dale, Matt

2004-06-22


Yup, thats the one you need.

I'm a bit rusty on JK as I use JK2.

Congrats.

-----Original Message-----
From: Casas, Claudia [mailto:ccasas@(protected)]
Sent: 22 June 2004 01:07
To: Tomcat Users List
Subject: RE: I do not want port 8080. Anyone know how to?



I think I found the solution to my problem,

I included the following line inside my apache httpd.conf:

JkMount /*.jsp ajp13

The name of my worker is ajp13, ugly name, but it was the default so I
did not dare to change it.
According to the Apache How to in the Jakarta site, this will tell
apache to handle all files ending in jsp through my tomcat worker.

I just tested my jsps as http://my.domain.com/myacct/my.jsp, and they
work beautifully.


-----Original Message-----
From: Casas, Claudia
Sent: Monday, June 21, 2004 4:44 PM
To: 'Tomcat Users List'
Subject: RE: I do not want port 8080. Anyone know how to?

All I have in my workers.properties is the following:

worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13

I still want apache alive. I guess my problem is just the 8080
extension. If run my jsps through tomcat with port (8080) or without it
from the tomcat root, let's say the directory examples,
(http://localhost:8080/examples/myjsps) and
http://localhost/examples/myjsps) they worked beautifully. My problem
started when I included the new context path to run my jsps from a user
directory.

    <Context path="/mycct" docBase="/home/myacct/wwwdocs" debug="0"
          reloadable="true" crossContext="true">
    </Context>

I am sorry, I am a little confused. I guess what I do not understand is
how will my server know if I am running jps or just plain html if I do
not include port 8080. If I am totally wrong, please just let me know.



-----Original Message-----
From: Dale, Matt [mailto:Matt.Dale@(protected)]
Sent: Monday, June 21, 2004 3:54 PM
To: Tomcat Users List
Subject: RE: I do not want port 8080. Anyone know how to?


Then it sounds like both solutions worked partly.

For Filip's solution to work you would have to shut down apache
completely and apache becomes the standard web server and both servlets
and jsp's should work, but you lose apache.

It sounds like when you tried my solution that you have a missing part
in your mappings. Have a look in the workers.properties (or
workers2.properties if it is jk2) and you will need a mapping along the
lines of /yourapp/*.jsp so that your jsp's are mapped or even just
/yourapp/* should map the whole webapp. If you dont understand post your
workers.properties and i'll see if I can help.

Ta
Matt

-----Original Message-----
From: Casas, Claudia [mailto:ccasas@(protected)]
Sent: 21 June 2004 22:47
To: Tomcat Users List
Subject: RE: I do not want port 8080. Anyone know how to?


Thanks for your prompt answer.
Unfortunately this solution did not work for me. When I remove the http
connector, then I can see my web pages through apache. But I cannot see
any jsp's at all.

Also, If I change port 8080 to port 80 in my server.xml file; then I
have the same problem. I can see my web pages, but not my jsp's.

-----Original Message-----
From: Dale, Matt [mailto:Matt.Dale@(protected)]
Sent: Monday, June 21, 2004 3:29 PM
To: Tomcat Users List
Subject: RE: I do not want port 8080. Anyone know how to?


Hi,

You merely need to comment out the HTTP connector in your
conf/server.xml

Ta
Matt

-----Original Message-----
From: Casas, Claudia [mailto:ccasas@(protected)]
Sent: 21 June 2004 22:19
To: Tomcat Users List
Subject: I do not want port 8080. Anyone know how to?



Hello everyone,
I have my jsps running thorugh my user directories. For example,
http://mydomain.com:8080/myuser/myfile.jsp
I would like see if it is possible to take out the port 8080, so that it
would seem like apache is processing the page.
http://my.domain.com/myuser/myfile.jsp

Is this possible? Does anybody know how? My jk connector is working
because http://localhost:8080/examples and http://localhost/examples
work both fine. I thought that some of my jsp files were already working
like this, but I just realized only the html was being processed when no
port 8080 was included.

<!-- Claudia Casas
    Application Development Coordinator
    Digital Media Center, Ext. 5940 -->
"Technology does not drive change -- it enables change. "


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)

Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at postmaster@(protected)
Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments.
Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)
©2008 junlu.com - Jax Systems, LLC, U.S.A.