• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how would i go about making apache my actual server

 
john mattucci
Ranch Hand
Posts: 331
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Im new to servers and Apache. I have played with tomcat for a while and i feel quite confident with it. Now Im proceeding to my next step adding tomcat to apache which for now is moving along nicely. My question now is how would I go about making apache my real server rather than making it run simply as a localhost? How would I obtain an IP address? Could someone guide me in the right direction.
Thank u all for your time
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17989
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Apache is normally DISTRIBUTED as your "real" server. By which I mean that the default config files for most Apache distros are set to have it come up on the standard HTTP port (port 80). Most of the Tomcat distros come up serving on ports such as 8080 or 8180.
Making a server accessible via the Internet is mostly a matter of having it able to pass traffic through firewalls. For example, a lot of the consumer ISPs don't let you serve traffic outbound via Port 80. To be visible as, say "www.mysite.com", you'd need to register mysite.com with a domain registrar such as Verisign and set up one or more Domain Name Servers that would translate "www.mysite.com" to your (hopefully fixed) IP address.
Frontending a Tomcat server with Apache requires use of one of the available Apache-to-Tomcat connectors such as coyote, mod_jk, mod_jserve or mod_webapp. However, unless you actually NEED Apache-specific features, you can simply reconfigure Tomcat's server.xml file to serve up HTTP on port 80 and then you don't need either Apache or the connectors - Tomcat will act as your web server.
 
john mattucci
Ranch Hand
Posts: 331
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks tim, that really helped
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic