• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tomcat and apache run

 
Ranch Hand
Posts: 204
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a tomcat server running on a linux server. If I install apache and successfully run it and then enter localhost or the url of the server, which page will i get. The tomcat server intro page or apache server intro page? Or will the 2 server clash and nothing happen.
 
Ranch Hand
Posts: 405
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It's been a while, so correct me if I am mistaken. If you type in the url "localhost" or ip address of the localhost, you should get the apache test page. By default tomcat listens to port 8080. So if you append the url or IP address with port 8080 for example:


You should get the tomcat test page.
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
lin:

All depends on what you have set up.

If you want static content (html) to be servered from the / context by the web process on port 80 then do not configure Tomcat to do so.

There is no port conflict in the "default" set-up, the server.xml (which is the control mechanism for which ports Tomcat will listen on) has a JK connector on 8009 and an HTTP1.1 listener on 8080. You may change those, but if you attempt to change them to 80 apache will not start -- you get "port in use" errors.

You must start Tomcat first. Using Tomcat to serve all content is possible...
reply
    Bookmark Topic Watch Topic
  • New Topic