Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
Hi, As i said in the coffee lounge a few days ago, i am in the process of trying to set up a HTTP server using linux. Before i actually ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux User Tommaso's Avatar
    Join Date
    Oct 2005
    Posts
    292

    Starting an HTTP Server


    Hi, As i said in the coffee lounge a few days ago, i am in the process of trying to set up a HTTP server using linux. Before i actually start intalling any software, i would like to make sure that i am going to do things correctly.

    All i want, is a server that will display HTTP pages, and java servelts. I have a java book, that says to download tomcat in order to get servelts to function. Now i am just not sure what to download. Apache, Tomcat or both?

    I also have a tutorial on how to set tomcat on windows, but how is it supported on linux? Also, what exactly does Apache do, and what does Tomcat do (apart from running java servelts) and what are their main differeces?

    Thanks in advance for the help

  2. #2
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    Location
    North Carolina
    Posts
    1,077
    I would use both, apache for your html and php pages, tomcat for all your jsp pages. works pretty well

    http://www.serverwatch.com/tutorials...0825_2203891_1

    if that doesn't help do a google search
    http://www.google.com/search?hs=8n4&...at&btnG=Search

  3. #3
    Linux User Tommaso's Avatar
    Join Date
    Oct 2005
    Posts
    292
    Thanks alot for the link. I will read it all when i will find a little time. But i am just curious, if all the pages i have are only java servelts, is there even a point in using Apache? Eventually i will have both java and HTML, but i think that i will only have java servets ready within the next month or so. So is it OK to just have Tomcat for a while, or do i need both regradless? Thanks.

  4. #4
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    Location
    North Carolina
    Posts
    1,077
    tomcat will work fine on its own. I don't know how secure tomcat is compared to apache, one of the benefits of using apache as the frontend. but tomcat will work fine alone

  5. #5
    Linux User Tommaso's Avatar
    Join Date
    Oct 2005
    Posts
    292
    OK, thanks, I won't have any security issues yet, cuz this is just something i will do for fun, and i doubt that i will get hacked. Now saying this, will tomcat also do HTML pages byitself or do i need apache for that? Thanks.

  6. #6
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    Location
    North Carolina
    Posts
    1,077
    if you are considering html also I would go with the apache + tomcat setup. if you are just doing it for fun then this isn't much more of a step for a much more functional server

  7. #7
    Just Joined!
    Join Date
    Feb 2006
    Location
    York, United Kingdom
    Posts
    25
    There is a module for Apache so that it supports TomCat / JS Pages.

    Theres some information about the module in google:

    http://www.google.com/search?sourcei...+Apache+Module

    Heres some information from Apaches website about the module:

    http://tomcat.apache.org/tomcat-3.2-...che-howto.html


    Have Fun!!

  8. #8
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    Location
    North Carolina
    Posts
    1,077
    Quote Originally Posted by adaml
    There is a module for Apache so that it supports TomCat / JS Pages.

    Theres some information about the module in google:

    http://www.google.com/search?sourcei...+Apache+Module

    Heres some information from Apaches website about the module:

    http://tomcat.apache.org/tomcat-3.2-...che-howto.html


    Have Fun!!
    same thing I was talking about above.

  9. #9
    Just Joined!
    Join Date
    Feb 2006
    Location
    York, United Kingdom
    Posts
    25
    I didnt click on the link, and the google link was just tomcat and apache.... so i didnt think you knew about the module!!

    Sorry for repeating then!

  10. #10
    Linux User Tommaso's Avatar
    Join Date
    Oct 2005
    Posts
    292
    Hi I am back again and once again, i would like to thank everyone for their help so far.

    I finally got ahold of the computer that i want to set up as a server, but i am not quite sure how to do the installation. I noticed that Fedora can automatically install apache, and the tomcat module for you during the installation. Do you think that i should intall from source, or do you think that i should go ahead and have fedora install it for me?

    Also looking ahead at the future, i would like to put sun java on this machine. Once i will install the java, is there a specific file that i have to edit, so that the apache tomcat module will use sun java? Thanks.

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •