Web Hosting Forum | Lunarpages
News: July 14, 2008 - New Contest! - Submit Your WordPress Theme Designs, Win BIG!
June 30, 2008 - Submit Your Site for the July 08 Site of the Month Award!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
July 25, 2008, 06:20:42 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: redirecting to tomcat  (Read 532 times)
hrcerqueira
Trekkie
**
Offline Offline

Posts: 11


« on: December 19, 2006, 08:38:08 AM »

Hello all.

I have a website on my vps running under tomcat. I used to have frame forwarding to vps_ip:8080\sitedirectory, but that results on always having the same url on address bar. What i want is to have the domain pointing directly my site without using any type of forwarding.

Sorry if I'm not very clear, but english it's not my natural language and i have some difficulties explaining myself.
Logged
perestrelka
Administrator
Jedi
*****
Offline Offline

Posts: 980



« Reply #1 on: December 20, 2006, 11:59:32 AM »

Hello,

If you don't need Apache, Tomcat running on the port 80 would be a solution for you. You'll need to stop Apache, remove it from startup, then configure Tomcat to bind the port 80 and restart.

I hope this helps.
Logged

Kind Regards,
Vlad Artamonov
hrcerqueira
Trekkie
**
Offline Offline

Posts: 11


« Reply #2 on: December 25, 2006, 07:12:30 AM »

Hi, thanks for your reply. Actually i need apache, because i have another site running on the same vps that's built on php. I know there's a way of doing that, just don't know how...

Thanks anyway

Merry Christmas
Logged
perestrelka
Administrator
Jedi
*****
Offline Offline

Posts: 980



« Reply #3 on: December 27, 2006, 05:11:56 AM »

Hello,

Then you would consider the following options:

1. Purchasing an additional IP and run Tomcat on the port 80 on that IP.
2. Forwarding requests from Apache to Tomcat using mod_proxy (please see http://tomcat.apache.org/tomcat-4.1-doc/proxy-howto.html for more information)
3. Connecting Tomcat to Apache using mod_jk (details can be obtained here: http://tomcat.apache.org/tomcat-3.2-doc/tomcat-apache-howto.html)

The last 2 options allows pass requests to Tomcat from Apache transparently for clients.

I hope this information is helpful.
Logged

Kind Regards,
Vlad Artamonov
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM