null
null

Reputation: 3517

Trying to view deployed JSP page online. XAMP / Tomcat

I've been using XAMP and it's features for some php sites and it's working fine. I'm now needing to use it for JSP development for a project we're about to start working on.

So far it's functioning on my local machine in that I downloaded the sample war file from Tomcat and it deploys fine and is visible when using localhost:8080/sample.

The problem is that I can't seem to access it from a browser using the domain name. I tried www.mydomain.com/sample but receive a 404 error. The same when using my local IP address instead.

I've searched online for a while now and have come across a few sources that hint at integrating apache with tomcat but nothing concrete enough to try and get a working solution.

I've also tried (and miserably failed) to watch the video that is referenced in a few other questions.

Any help is hugely appreciated,

Thanks.

Upvotes: 0

Views: 138

Answers (1)

Kamil Mikolajczyk
Kamil Mikolajczyk

Reputation: 911

that's because tomcat works on port 8080 unlike apache - when you run php sites they are just behind the apache which is visible on port 80 (which the default one in browsers), you can go through "http://mydomain.com:8080/sample" and it would work the same as through localhost

you can also change tomcat's settings and change it's connector's port from 8080 to 80, and then it would work as you expected

Upvotes: 1

Related Questions