TEC TIP: How to regenerate the httpd.conf file

Document created by rontr01 Employee on Oct 23, 2014Last modified by SamCreek on Dec 17, 2016
Version 3Show Document
  • View in full screen mode

UNIX/LINUX Instructions:

 

1. As $NH_USER, stop the httpd daemon:

     nhHttpd stop

2. Go to the directory: $NH_HOME/web/httpd

3. Rename your file httpd.conf to httpd.conf.old

4. In 6.0 SP 02 and later, as the eHealth user, issue the commands:

     cd $NH_HOME/bin

     nhHttpdCfg -user <$NH_USER> -grp <eHealth_user_group> -nhDir $NH_HOME -protect -outFile      $NH_HOME/web/httpd/conf/httpd.conf

          Additional notes:
          - $NH_USER is the name of the eHealth user on the target server.
                    To find the NH_USER run: env | grep NH_USER
          - The eHealth_user_group is the Unix group to which the eHealth user account belongs.

5. As $NH_USER, restart the httpd daemon as:

     nhHttpd start

6. Open a Web browser and verify that the eHealth Web interface is working properly.

 

Windows Instructions:

1. Login as the eHealth user

2. Rename the %NH_HOME%/web/httpd/httpd.conf to httpd.conf.old

3. For 6.0 SP 02 and later: From a command prompt in the %NH_HOME%\bin directory, run the following command:

 

     nhHttpdCfg -user <$NH_USER> -grp Administrators -nhDir %NH_HOME% -protect -outFile %NH_HOME%\web\httpd\conf\httpd.conf

          Additional notes:

        - $NH_USER is the name of the eHealth user on the target server.

                   To find the NH_USER run: env | grep NH_USER

 

4. Select Start -> Settings -> Control Panel -> Services (Alternatively run services.msc from the run window)

5. Select eHealth httpd<version> (ex: eHealth httpd63); then click Stop

6. Select eHealth httpd<version> (ex: eHealth httpd63); then click Start

7. Click Close

8. Open a Web browser and verify if the eHealth Web interface is working properly

Attachments

    Outcomes