Link to home
Start Free TrialLog in
Avatar of Member_Dennis
Member_Dennis

asked on

unable to access index.jsp page from external

Hi,

I'm the IT infrastructure guy trying to help our developer.


1. This page works internally:
http://127.0.0.1:8081/mobi/jsp/index.jsp

and shows:
Welcome To Struts 2!
Hello World


2. But this doesn't:
http://servername.company.com:8081/mobi/jsp/index.jsp

Shows:
404 - File or directory not found.
The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.


3.This page works:
http://servername.company.com

Shows the default IIS page


Environment:
Windows Server 2008 R2 Standard
Tomcat 7
Oracle Express 11g
No firewall restriction on port 8081

How do I enable external access to the jsp apps?
Is it possible to make Tomcat the default, instead of IIS?
Avatar of Brad Howe
Brad Howe
Flag of Canada image

Tomcat uses a <connector> setting to tell what IP and PORT the service should listen for. The file server.xml should have this set oto 127.0.0.1 on 8081 by my guess.


1. You can use IIS url rewrite and ARR (Applicaiton Routing) to proxy the requests.

2. Change the the connector opitons in the server.xml by removing hte address= settings, and just have it set to a port.

3 .Stop IIS and change hte server,xml to start on port 80.

Let me know if you have any questions,
Cheers,
Hades666
Avatar of Member_Dennis
Member_Dennis

ASKER

Hi Hades666

Sorry, I need some more clarification:

Step 1 is just a comment, right?

Step 2: checked server.xml and there are no address= settings, just port= settings.

Step 3: not clear about this step. Would you please list the sub-steps?
ASKER CERTIFIED SOLUTION
Avatar of Brad Howe
Brad Howe
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks, it worked.

I still have issues opening the port on Server 2008 (but that's a different question).

:-)