Solved

How to run PHP & JSP application on the same port in linux?

Posted on 2008-10-24
3
682 Views
Last Modified: 2013-12-06
I have 2 web applications running on the same Linux server. Now, I have a web application in JSP which runs in Tomcat Web Server , port 8080 & I will access like this,

http://111.333.77.9:8080/TEST ... now i get the application access and try to use it.

In the same server, I have an local intranet email (squirrelmail) configured which runs like this, http://test.com  , port, 80& (virtual host created for this)  & basically I want to integrate this into TEST JSP application

When I use the JSP application, I could not access the http://test.com which runs in 80 port& I have integrated this into TEST JSP application &

After logging from TEST JSP application, I could not access the http://test.com domain pages&it is because of both applications are running on different ports (8080 & 80)

 How to configure this?

thanks
0
Comment
Question by:Loganathan Natarajan
  • 2
3 Comments
 
LVL 8

Accepted Solution

by:
Rance_Hall earned 500 total points
Comment Utility
I hate to say this, but I dont fully see how this is going to work.

I have an idea, but its an untested idea, so It may not work.

first, no two web servers can run on the same ip/port combination, and its clear you already understand this.

you of course should be able to open two different web browsers one to the squirrelmail session and one to the tomcat session.  if you cant do this then you have a different problem.

so your squirrelmail running in apache, and your jsp app running in tomcat HAVE to run on different IP/PORT combinations.


two easiest fixes:

1) find a squirrelmail-like app that you like that runs in tomcat.  if you can find such a thing, then configure tomcat to run it and you will have webmail access within your tomcat session.

2) find an app that is like you JSP all that doesnt require tomcat, if this app (or one like it) can run in a plain apache session then you can have webmail and your custom app linked.

harder fix:

1) Find a tomcat based web brower tool that can open up a web window from within a tomcat generated page, and use that window to open a plain web based squirrelmail session.

what makes the most sense:

1) use subdomains like webmail.domain.com and webapp.domain.com -- the beauty of this setup is that they are supposed to be seperate, and you can link from one to the other whenever/whereever you want.

0
 
LVL 36

Author Comment

by:Loganathan Natarajan
Comment Utility
thanks for the idea's, let me get back..
0
 
LVL 36

Author Closing Comment

by:Loganathan Natarajan
Comment Utility
thanks,
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now