?
Solved

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

Posted on 2008-10-24
3
Medium Priority
?
704 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 8

Accepted Solution

by:
Rance_Hall earned 1500 total points
ID: 22798411
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
ID: 22802007
thanks for the idea's, let me get back..
0
 
LVL 36

Author Closing Comment

by:Loganathan Natarajan
ID: 31509732
thanks,
0

Featured Post

WordPress Tutorial 4: Recommended Plugins

Now that you have WordPress installed, understand the interface, and know how to install new parts, let’s take a look at our recommended plugins.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses four methods for overlaying images in a container on a web page
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses

770 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