Windows instructions (manual)

Upgrade Apache HTTP Proxy from the Apache installer

ERA 6.5 is bundled with Apache HTTP Proxy 2.4.20, if you decide to install a newer version (downloaded from the Apache website), follow these steps:

Prerequisites:

Using operating system supported by the latest stable Apache 2.4.XX_x86

Windows Vista

Windows Server 2008

Windows 7

Windows Server 2012

Windows 8/8.1

Windows 10

You need to have installed Visual C++ 2015 x86 Redistributable Package. You can download it from Microsoft.

 

Installation process:

 

1.Download the latest stable x86 version of the Apache HTTP Proxy from httpd.apache.org

2.Open the Command Prompt (CMD).

3.In the Command Prompt navigate to C:\Program Files\Apache HTTP Proxy\bin

4.Run the following commands:
Httpd –k stop –n ApacheHttpProxy
Httpd –k uninstall –n ApacheHttpProxy

validation-status-icon-infoCertain operating systems do not accept commands above. In that case use following commands instead:

sc stop apachehttpproxy
httpd.exe -k uninstall -n ApacheHttpProxy

5.Backup the httpd.conf file found in C:\Program Files\Apache HTTP Proxy\conf.

6.Delete the contents of C:\Program Files\Apache HTTP Proxy leaving the top level folder.

7.Open the downloaded zip file, navigate inside the Apache24 folder and copy the contents to C:\Program Files\Apache HTTP Proxy.

8.Navigate to C:\Program Files\Apache HTTP Proxy\conf and rename the httpd.conf file to original.httpd.conf.

9.Copy the original httpd.conf file from the step 5. to C:\Program Files\Apache HTTP Proxy\conf.

10.Edit the httpd.conf file and under the ‘modules’ section replace in all file names the .dll extensions with .so extensions.

11.In the Command Prompt navigate to C:\Program Files\Apache HTTP Proxy\bin and run following commands:
Httpd –k install –n ApacheHttpProxy
Httpd –k start –n ApacheHttpProxy
 
validation-status-icon-infoCertain operating systems do not accept commands above. In that case use following commands instead:

httpd.exe -k install -n ApacheHttpProxy
sc start apachehttpproxy

12.Test the connection to Apache HTTP Proxy by accessing the following URL in your browser:
http://[IP address]:3128/index.html

By adding proxy details to a browser you can navigate to www.eset.com but not www.google.com as expected.


Upgrade Apache HTTP Proxy to the version available from ESET site

1.Back up the following files:

C:\Program Files\Apache HTTP Proxy\conf\httpd.conf

C:\Program Files\Apache HTTP Proxy\bin\password.file

C:\Program Files\Apache HTTP Proxy\bin\group.file

2.Stop the ApacheHttpProxy service by opening an admnistrative command prompt and executing the following command:

sc stop ApacheHttpProxy

3.Download the Apache HTTP Proxy installer file from ESET download site and extract its contents to C:\Program Files\Apache HTTP Proxy\. Overwriting the existing files.

4.Navigate to C:\Program Files\Apache HTTP Proxy\conf, right-click httpd.conf, from the context menu and select Open with > Notepad

5.Add the following code at the bottom of httpd.conf:

ServerRoot "C:\Program Files\Apache HTTP Proxy"
DocumentRoot "C:\Program Files\Apache HTTP Proxy\htdocs"
<Directory "C:\Program Files\Apache HTTP Proxy\htdocs">
 Options Indexes FollowSymLinks
 AllowOverride None
 Require all granted
</Directory>
CacheRoot "C:\Program Files\Apache HTTP Proxy\cache"

6.If you set a username/password to access your Apache HTTP Proxy (Apache HTTP Proxy installation topic), replace the following block of code:

<Proxy *>
 Deny from all
</Proxy>

with this one (found in your backed-up httpd.conf file you backed up in step 1):

<Proxy *>
 AuthType Basic
 AuthName "Password Required"
 AuthUserFile password.file
 AuthGroupFile group.file
 Require group usergroup
 Order deny,allow
 Deny from all
 Allow from all
</Proxy>

If you had other customizations made to your httpd.conf file in place in your previous installation of Apache HTTP Proxy, you can copy over those modifications from the backed-up httpd.conf file to the new (upgraded) httpd.conf file.

7.Save your changes and start the ApacheHttpProxy service by executing the following command in an administrative command prompt:

sc start ApacheHttpProxy

8.Test the connection to Apache HTTP Proxy by accessing the following URL in your browser:

http://[IP address]:3128/index.html

See the Apache HTTP Proxy log files if you need to troubleshoot an issue.