Previous Topic: Create the mod_jk.conf File

Next Topic: How to Configure Secure Socket Layer (SSL) for Apache

Edit the Apache httpd.conf File

After you create the mod_jk.conf file, edit the Apache httpd.conf file to configure the Apache server name and port and include the mod_jk.conf file.

To edit the Apache httpd.conf file

  1. Change to the following directory:
    Apache_install_dir\conf
    
    Apache_install_dir

    Specifies your Apache installation directory.

  2. Open the httpd.conf file in a text editor.
  3. Locate the following line:
    Listen 80
    
  4. Edit the line as follows:
    Listen Apache_server_name:Apache_port
    
    Apache_server_name

    Specifies the server name that you used when you installed the Apache HTTP server.

    Apache_port

    Specifies the port of the Apache HTTP server.

    Default: 80 (http); 443 (https)

    Note: We recommend that you use the default port so you do not need to remember the port to access the Apache server.

    The Apache server name and port are configured.

  5. Add the following lines to the end of the httpd.conf file:
    #add the mod_jk.conf file to add the jk configurations
    Include conf/mod_jk.conf
    

    The mod_jk.conf file is included.

  6. Save the httpd.conf file.

    The Apache httpd.conf file is edited.