Novell Home

Setting up Apache to listen on a Public and Private IP Address on NetWare 6

Novell Cool Solutions: Feature

Digg This - Slashdot This

Posted: 8 Aug 2002
 

On NetWare 6 there are two instances of Apache. One runs the Web Manager and one runs iFolder. The steps below will take you though both configurations.

WEB MANAGER CONFIGURATION [ADMINSERV.CONF]

(Note: This configuration assumes that you have two NIC cards in the same box: one with the public IP address and one with the private IP address. If your public IP address is on a different box then you will need to use acceleration or NAT to accomplish this task.)

1 On NetWare 6 the configuration file for Apache are found in the SYS:/APACHE/CONF directory and is named ADMINSERV.CONF. Open this file and you will find the following information.

Listen 192.168.0.1:80

   SecureListen 192.168.0.1:443 "SSL CertificateDNS"

(Note: Your configuration may be different depending on whether you installed with the single IP address option, or the multiple IP address option. You may have port 51080.)

2 The important thing is to duplicate the listen and secure listen statement so that it will listen on the public IP address as well as the private.

(Note: Again, this will only work if the public and private IP address are listening on the same server. If the IP address is not bound to the server then you can't have it listen on an IP address.)

3 Your statements should now be as follows:

Listen 192.168.0.1:80
Listen 137.65.60.60:80

   SecureListen 192.168.0.1:443 "SSL CertificateDNS"
   SecureListen 137.65.60.60:443 "SSL CertificateDNS"

IFOLDER CONFIGURATION [HTTPD.CONF and HTTPD_ADDITIONS_NW.CONF]

(Note: This configuration assumes that you have two NIC cards in the same box, one with the public IP address and one with the private IP address. If your public IP address is on a different box then you will need to use acceleration or NAT to accomplish this task.)

1 On NetWare 6 the configuration files for Apache running iFolder are found in the SYS:/APACHE/IFOLDER/SERVER directory and are named HTTPD.CONF and HTTPD_ADDITIONS_NW.CONF. We will start with the HTTPD.CONF file. After opening the file and you will find the following information.

Listen 192.168.0.1:80

   SecureListen 192.168.0.1:443 "SSL CertificateDNS"

(Note: Your configuration may be different depending on whether you installed with the single IP address option, or the multiple IP address option. You may have port 51080.)

2 The important thing is to duplicate the listen and secure listen statement so that it will listen on the public IP address as well as the private.

(Note: Again, this will only work if the public and private IP address are listening on the same server. If the IP address is not bound to the server then you can't have it listen on an IP address.)

3 Your statements should now be as follows:

Listen 192.168.0.1:80
Listen 137.65.60.60:80

   SecureListen 192.168.0.1:443 "SSL CertificateDNS"
   SecureListen 137.65.60.60:443 "SSL CertificateDNS"

4 Next we will edit the HTTPD_ADDITIONS_NW.CONF file and create duplicate virtual hosts for the public IP address. There are two virtual hosts sections in this file. We have removed the lines that have been commented out since they are not needed.


 

    ServerName 192.168.0.1

    DocumentRoot "SYS:\apache\iFolder\DocumentRoot" 

    

        Options Indexes FollowSymLinks MultiViews

        AllowOverride None

        Order allow,deny

        Allow from all

     

    

        SetHandler ifolderserver-form-handler

      

    LdapHost 192.168.0.1

    LdapPort 636

    LdapLoginDnContext "O=WEB"

    LdapRootCert "SYS:\apache\iFolder\server\RootCert.der" 

    iFolderServerRoot SYS:\iFolder 

    iFolderAdminName admin

    ServerSecurePort 443  





 

  ServerName 192.168.0.1 

    DocumentRoot "SYS:\apache\iFolder\DocumentRoot" 

    

        Options Indexes FollowSymLinks MultiViews

        AllowOverride None

        Order allow,deny

        Allow from all

     


    

        SetHandler ifolderserver-form-handler

     


    LdapHost 192.168.0.1 

    LdapPort 636

    LdapLoginDnContext "O=WEB" 

    iFolderAdminName admin 

    ServerSecurePort 443  




 

    ServerName 137.65.60.60

    DocumentRoot "SYS:\apache\iFolder\DocumentRoot" 

    

        Options Indexes FollowSymLinks MultiViews

        AllowOverride None

        Order allow,deny

        Allow from all

     

    

       SetHandler ifolderserver-form-handler

      

    LdapHost 137.65.60.60

	LdapPort 636

    LdapLoginDnContext "O=WEB"

    LdapRootCert "SYS:\apache\iFolder\server\RootCert.der" 

    iFolderServerRoot SYS:\iFolder 

    iFolderAdminName admin

    ServerSecurePort 443 




 

    ServerName 137.65.60.60 

    DocumentRoot "SYS:\apache\iFolder\DocumentRoot" 

    

        Options Indexes FollowSymLinks MultiViews

        AllowOverride None

        Order allow,deny

        Allow from all

     

    

        SetHandler ifolderserver-form-handler

     

    LdapHost 137.65.60.60

    LdapPort 636

    LdapLoginDnContext "O=WEB" 

	iFolderAdminName admin

    ServerSecurePort 443 


Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

© 2014 Novell