Altair® Panopticon

 

Apache HTTP Server

This section describes the steps on how to install and configure an Apache Proxy. The guide expects that the Apache HTTP Server is being setup for the first time. Please note that the installation steps might vary depending on your environment. These steps cover how to install and configure an Apache HTTP Server with proxy support for Microsoft Windows.

1.     Download the Apache HTTP Server from the official webpage: https://httpd.apache.org/download.cgi

2.     Unzip and copy the files to a folder.

3.     Configure the proxy by opening the httpd.conf file in the conf folder.

4.     Update the SRVROOT  variable. The value must be updated to the file location of the Apache HTTP server.

 

Define SRVROOT "/Path/To/Apache"

ServerRoot "${SRVROOT}"

 

 

5.     Modules are required to be loaded to make the Apache HTTP Server into a proxy. Add the following lines in the httpd.conf  file.

 

LoadModule proxy_module modules/mod_proxy.so

LoadModule proxy_http_module modules/mod_proxy_http.so

LoadModule proxy_wstunnel_module modules/mod_proxy_wstunnel.so

LoadModule rewrite_module modules/mod_rewrite.so

 

 

   NOTE

In the httpd.conf file:

·        Ensure that the line Include conf/extra/httpd-vhosts.conf is uncommented.

·      Replace Listen 80 with Listen 10088.

 

 

6.     Configure the logic for the proxy and how requests should be passed. The Virtual host config should look like this and be added to the httpd-vhosts.conf file in the conf/extra folder:

 

<VirtualHost :10088>

ServerAdmin webmaster@localhost

ProxyPreserveHost On

ProxyPass /panopticon http://localhost:8080/panopticon

ProxyPassReverse /panopticon http://localhost:8080/panopticon

ProxyPass /panopticon/server/ws http://localhost:8080/panopticon/server/ws

ServerName localhost:8080

RewriteEngine on

RewriteCond %{HTTP:UPGRADE} ^websocket$ [NC]

RewriteCond %{HTTP:CONNECTION} Upgrade [NC]

RewriteRule . ws://localhost:8080%{REQUEST_URI} [P]

</VirtualHost>

 

 

7.     The Apache HTTP Server can be started when all the configurations are in place. This is done by running the httpd script or application in the Apache binfolder.