Apache + Tomcat

Document Sample
Apache + Tomcat Powered By Docstoc
					Apache + Tomcat
      Apache + Tomcat4.0
   1. Download

   2 . Copy the file into your Apache
    1.3 "libexec" directory

   3. Copy the libapr.dll file into your Apache 1.3
    "libexec" directory

        Apache + Tomcat4.0
   4. Edit your "httpd.conf" configuration file
       Add a few lines to load that module at startup (Windows
        users, read above, you have to "replace" libexec with
       LoadModule webapp_module libexec/
       NOTE: It was reported that sometimes Apache under
        windows doesn't like the
       AddModule line in the configuration file. Please, if you can't
        start your
       Apache service, try commenting out that line in your
        httpd.conf file.

       Apache + Tomcat4.0

5. you can start adding your
      web application connections and context into the Apache
       configurations.Back to the "httpd.conf" file, you need to add
       something like:
        WebAppConnection conn         warp localhost:8008
        WebAppDeploy        examples conn /examples

          Apache + Tomcat4.0
   In this example, I'm instructing the WebApp connector to connect
    to the servlet container waiting for requests on the current
    "localhost" host and bound to port 8008
   A brief detailed description of the above-mentioned directives is:
    WebAppConnection [connection name] [provider] [host:port]
    [connection name]

       Apache + Tomcat4.0
   A unique name for the connection to be created between
    Apache and Tomcat.
   [provider]
     The name of the provider used to connect to the servlet
    container. Currently only the "warp" provider is available.
    [host:port]
    The host name and port number to which the WARP connection
    must attempt to connect. The port is the one you specified in
    your server.xml" file for the "...WarpConnector" connector, not
    your HTTP one. WebAppDeploy [application name] [connection
    name] [url path]

       Apache + Tomcat4.0
   [application name]
    The application name as present in your "webapps" directory in
    Tomcat. For example, if you want to deploy a WAR-based web
    application, your application name will look something like

    [connection name]
    The name of a previously declared WebAppConnection

    [url path]
    The URL path where this application will be deployed.

       Apache + Tomcat3.2
   Site:
    Click: Apache Server, then download
   Go to binaries directory, Then win32 directory
   Download apache 1_3_12_win.exe

      Apache + Tomcat3.2
   Installation: Click apache1_3_12_win32.exe
   Configure Apache web server
    1. Get your computer’s IP address, For example:
    2. Open httpd.conf file
       Set ServerName your computer IP Address
       ServerAdmin your Email address

      Apache + Tomcat3.2

   Configure the directory which you want to access
    from browser.
      For example:
          alias /mydoc/ d:/apache_web_doc
   Save the configure file

       Apache + Tomcat3.2

    Copy any *.html file to the directory which allow
     browser to make request

    Present the *.html
    For example: http://localhost/mydoc/*.html

      Apache + Tomcat3.2

   Web Site:
   Click Jakarta , then Click Tomcat3.1.1
   Install: Unzip the Jakarta-Tomcat file
   Test Tomcat: http://your_computer_IP:8080

      Apache + Tomcat3.2

   Click Java-Apache
   Download JServ1.1
   Install JServ1.1

       Apache + Tomcat3.2

   Copy ApacheModleJServ.dll into the Apache modules directory
   Find your httpd.conf and add the following line to the end
    include “c:\jakarta-tomcat\conf\tomcat-apache.conf”

       Apache + Tomcat3.2
   In order to set up a new web application, for
    example,in our case, project, you need to add a new
    Context tag in server.xml
    Our case:
    Debug=“0” reloadable=“true”>


Shared By: