How to remove the 8080 from the URL of a Tomcat driven Site

Hi Everyone, Am running a Tomcat based site and would like to remove the 8080 that is appended at the end of each URL on my site. I have tried changing the port from 8080 to 80 on my web.xml file, but this now causes my browser to default to the default Apache page as opposed to my site's home page. Please advice.

http://your.website.com/page = http://your.website.com:80/page from your browser Check if your tomcat server is actually running, since in your case, apache and tomcat would be listening on the same port. -- Josiah Mugambi 2010/11/5 Martin Kihuha <mkihuha@gmail.com>
Hi Everyone,
Am running a Tomcat based site and would like to remove the 8080 that is appended at the end of each URL on my site. I have tried changing the port from 8080 to 80 on my web.xml file, but this now causes my browser to default to the default Apache page as opposed to my site's home page.
Please advice.
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke

Hi Josiah, You mean I check while I've changed the port to 80 ama? And how would I be able to check that? On Fri, Nov 5, 2010 at 2:05 PM, Josiah Mugambi <jmugambi@gmail.com> wrote:
http://your.website.com/page = http://your.website.com:80/page from your browser
Check if your tomcat server is actually running, since in your case, apache and tomcat would be listening on the same port.
-- Josiah Mugambi
2010/11/5 Martin Kihuha <mkihuha@gmail.com>
Hi Everyone,
Am running a Tomcat based site and would like to remove the 8080 that is appended at the end of each URL on my site. I have tried changing the port from 8080 to 80 on my web.xml file, but this now causes my browser to default to the default Apache page as opposed to my site's home page.
Please advice.
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke

Look at Wash's response... -- Josiah Mugambi 2010/11/5 Martin Kihuha <mkihuha@gmail.com>
Hi Josiah,
You mean I check while I've changed the port to 80 ama? And how would I be able to check that?
On Fri, Nov 5, 2010 at 2:05 PM, Josiah Mugambi <jmugambi@gmail.com> wrote:
http://your.website.com/page = http://your.website.com:80/page from your browser
Check if your tomcat server is actually running, since in your case, apache and tomcat would be listening on the same port.
-- Josiah Mugambi
2010/11/5 Martin Kihuha <mkihuha@gmail.com>
Hi Everyone,
Am running a Tomcat based site and would like to remove the 8080 that is appended at the end of each URL on my site. I have tried changing the port from 8080 to 80 on my web.xml file, but this now causes my browser to default to the default Apache page as opposed to my site's home page.
Please advice.
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke

I do not have the answer to your question but: You would better use *mod_jk* to route request via Apache web server which will then delegate to Apache-Tomcat for security purposes. Moving tomcat to port 80 might work, but tomcat is not meant to be a web-server, its a simple servlet engine. For security reasons, I would suggest you use Apache instead of exposing tomcat to the web if this is what you are doing. The configurations are simple to do, look at this: http://tomcat.apache.org/tomcat-3.3-doc/mod_jk-howto.html On Fri, Nov 5, 2010 at 1:56 PM, Martin Kihuha <mkihuha@gmail.com> wrote:
Hi Everyone,
Am running a Tomcat based site and would like to remove the 8080 that is appended at the end of each URL on my site. I have tried changing the port from 8080 to 80 on my web.xml file, but this now causes my browser to default to the default Apache page as opposed to my site's home page.
Please advice.
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke

On Fri, Nov 5, 2010 at 1:56 PM, Martin Kihuha <mkihuha@gmail.com> wrote:
Hi Everyone,
Am running a Tomcat based site and would like to remove the 8080 that is appended at the end of each URL on my site. I have tried changing the port from 8080 to 80 on my web.xml file, but this now causes my browser to default to the default Apache page as opposed to my site's home page.
Tomcat is binded to port 8080. If you have Apache on the same server, it is binded to port 80. It therefore means you cannot edit web.xml and make Tomcat to bind to port 80 unless you kill/disable Apache, or edit httpd.conf and make Apache bind to port 8080 instead, then let Tomcat bind to 80. You cannot have the two daemons binding to port 80! The first one to come up will bind, the next one will fail and die(). -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Damn!!

Thanks Wasington. But, wouldn't this expose my Tomcat to the web as per Duggan's email? On Fri, Nov 5, 2010 at 2:10 PM, Odhiambo Washington <odhiambo@gmail.com>wrote:
On Fri, Nov 5, 2010 at 1:56 PM, Martin Kihuha <mkihuha@gmail.com> wrote:
Hi Everyone,
Am running a Tomcat based site and would like to remove the 8080 that is appended at the end of each URL on my site. I have tried changing the port from 8080 to 80 on my web.xml file, but this now causes my browser to default to the default Apache page as opposed to my site's home page.
Tomcat is binded to port 8080. If you have Apache on the same server, it is binded to port 80. It therefore means you cannot edit web.xml and make Tomcat to bind to port 80 unless you kill/disable Apache, or edit httpd.conf and make Apache bind to port 8080 instead, then let Tomcat bind to 80. You cannot have the two daemons binding to port 80! The first one to come up will bind, the next one will fail and die().
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Damn!!
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke

On Fri, Nov 5, 2010 at 2:54 PM, Martin Kihuha <mkihuha@gmail.com> wrote:
Thanks Wasington.
But, wouldn't this expose my Tomcat to the web as per Duggan's email?
Hi Martin, Running Tomcat standalone isn't necesarily insecure. But there are features that you may want, that are supported by Apache and other Web servers, but not Tomcat. Check out this short thread from the tomcat-users mailing list: <http://www.mail-archive.com/users@tomcat.apache.org/msg36248.html>. Joseph.

if u want to run tomcat on the said port you have to ensure that u stop apache coz it binds on port 80 or change the default apache port to something else then do the necessary changes on ur tomcat installation such that it listens on port 80 On Fri, Nov 5, 2010 at 3:17 PM, Joseph Wayodi <jwayodi@gmail.com> wrote:
On Fri, Nov 5, 2010 at 2:54 PM, Martin Kihuha <mkihuha@gmail.com> wrote:
Thanks Wasington.
But, wouldn't this expose my Tomcat to the web as per Duggan's email?
Hi Martin,
Running Tomcat standalone isn't necesarily insecure. But there are features that you may want, that are supported by Apache and other Web servers, but not Tomcat. Check out this short thread from the tomcat-users mailing list: <http://www.mail-archive.com/users@tomcat.apache.org/msg36248.html>.
Joseph.
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
participants (6)
-
Chris Mwirigi
-
Duggan Kim
-
Joseph Wayodi
-
Josiah Mugambi
-
Martin Kihuha
-
Odhiambo Washington