Win a copy of Terraform in Action this week in the Cloud forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Server installation

 
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have a doubt.
1) Is apache server is just a web server which responds to static web pages or does it have servlets container to respond to even dyanamic pages.If tomcat act both as web server and servlet container, can it be used for production purpose or do we have to combine apache server and tomcat.
2)If I install apache server on my PC. and add some html pages. will the www will be able to access my website if I give my IP address of my computer. Is there a need to register my ip address before giving to www.Please see the link to this discussion. I didn't understand that properly. https://coderanch.com/t/282533/JSP/java/Tomcat-as-web-server
Thanks
For help
 
Ranch Hand
Posts: 38
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1) for JSP/servlets you need a servlet container - such as Tomcat. Tomcat will serve static HTML pages aswell. It won't be the most efficient webserver as it's been built around the JSP and Servlet standards, but for most purposes it's quite/very capable. You can increase performance further by having static pages, images etc. on a seperate apache web server - depending on your needs.
2) if you've got an always on connection and want to host a site on your own PC that is entirely possible. Have a look at services like NO-IP which are really helpful if you have a dynamic IP which changes occasionally.
Remember a firewall and some other basic security issues as mentioned in that other post.
HTH, Marcus
[ August 04, 2003: Message edited by: Marcus Howarth ]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic