How to configure Apache web server as HTTP Distribution Center for LiveUpdate Administrator?

book

Article ID: 160981

calendar_today

Updated On:

Products

Endpoint Protection

Issue/Introduction

 You wish to configure new/additional Distribution Centers for your LiveUpdate Administrator (LUA) infrastructure. You found many articles about how to do so with IIS but you would like to use Apache web server instead.

 

If you installed Apache and didn't tune default configuration, connection to your new Distribution Center may show as "Unreachable" in LUA interface. You would also find errors like this in lua-application.log:

2014-07-29 15:39:42,239 [http-nio-0.0.0.0-7073-exec-22] INFO  rcl.HttpHelper  - Http Client Start Connection pool info: Connections in pool: 0 Default max connections: 10 Max active connections:20 Connections in pool for {}->http://192.168.76.110:80: 0 Max active connections for{}->http://192.168.76.110:80: 10
2014-07-29 15:39:42,239 [http-nio-0.0.0.0-7073-exec-22] INFO  rcl.HttpHelper  - Uploading file: D:\TempDownload\minitri.flg to server: 192.168.76.110/
2014-07-29 15:39:42,239 [http-nio-0.0.0.0-7073-exec-22] INFO  rcl.HttpHelper  - doPOST is disabled. Shall PUT now
2014-07-29 15:39:42,239 [http-nio-0.0.0.0-7073-exec-22] INFO  rcl.HttpHelper  - Uploading file: D:\TempDownload\minitri.flg
2014-07-29 15:39:42,270 [http-nio-0.0.0.0-7073-exec-22] ERROR rcl.HttpHelper  - for a PUT, the response code is - 405 response message -- Method Not Allowed

 

Cause

By default, Apache does not accept HTTP PUT request method to document root, even if you would have configured such method as "Allow for all" in httpd.conf.
 
One way to workaround this problem is to use DAV, as described in the solution below.
 
 

Resolution

1) Download and install VC11 (required - http://www.microsoft.com/en-us/download/confirmation.aspx?id=30679), then latest Apache version (2.4.10) as a service on a machine (https://www.apachelounge.com/download/).

REMARK - In this case, we pasted Apache24 folder at the root of C drive.

 

 

2) Access C:\Apache24\htdocs directory and create a new folder into it, called LUA-Content

 

 

3) Create a new dedicated user account (LUA-Account) with Full control of LUA-Content

 

 

4) Create a temp folder at the root of your Apache folder (i.e. C:\Apache24\temp), and give LUA-Account Full control over it

 

 

5) Make a backup of C:\Apache24\conf\httpd.conf, then edit this file

 

5.1) Uncomment “LoadModule dav_module modules/mod_dav.so” and “LoadModule dav_fs_module modules/mod_dav_fs.so

 

 

5.2) Add the following lines under “</IfModule>

    <IfModule mod_dav_fs.c>
         DAVLockDB "c:/Apache24/temp"
    </IfModule>

 

 

5.3) Find the section 

     <Directory "c:/Apache24/htdocs">
     ...
     </Directory>

and add following lines after it

     <Directory "c:/Apache24/htdocs/LUA-Content">
          Dav On
     </Directory>

 

 

5.4) Save changes, then restart Apache service

 

6) Configure the new Distribution Center in LUA

 

 

 

7) Configure Distribution Schedule in LUA as per your needs

 

 

8) Launch Distribution and confirm content is getting transferred successfully to your new Distribution Center

 
 

Applies To

 LiveUpdate Administrator 2.x

 

Attachments