X
4436

Example how to put an Apache server between ESE and clients on Ubuntu

This article provides some information about how to put an Apache server between Envi Services Engine and outside clients. The steps provided in this article detail how we (Tech Support) got this to work on an Ubuntu test system. These steps may not not work other systems, but hopefully they will at least get you pointed in the correct direction.

1) Install Apache using "sudo apt-get install apache2".  After installation, it should start automatically. You can test this by opening a web browser and typing "localhost". If the installation was successful, this should bring you to a webpage that says "it worked!"  You should also able to get to this page by typing in the IP address into a browser on a separate system.

2) Then, use the following command to create a new site:

sudo gedit /etc/apache2/sites-available/mynewsite

This will open the "mynewsite" file in the"gedit" text editor. Add the following text to the file:

<VirtualHost *:80>

ServerName localhost
ProxyPreserveHost on

<Proxy *>
  Order Allow,Deny
  Allow from all
  AuthType Basic
  AuthName"Password Required"
  AuthUserFile/etc/apache2/passwords/passwords
  Require user test_user
</Proxy>

ProxyRequests On
ProxyPass / http://localhost:8181/
ProxyPassReverse / http://localhost:8181/

</VirtualHost>

3) Enable the proxy modules using the following commands (NOTE: Some of these might not be needed but you may want to enable them just in case. Also "proxy" might already be enabled by default):

sudo a2enmod proxy
sudo a2enmod proxy_http
sudo a2enmod proxy_connect
sudo a2enmod proxy_scgi

4) Create a password file and add the user "test_user" using the following commands:

sudo mkdir /etc/apache2/passwords
sudo htpasswd -c /etc/apache2/passwords/passwordstest_user

This will bring up a prompt to enter a password.

5) Then, enable "mynewsite" and disabled the"default" site, using the following commands:

sudo a2ensite mynewsite
sudo a2dissite default

6) Restart the Apache server:

sudo /etc/init.d/apache2 restart

7) Open a browser and enter the IP address of the system (this should go to port 80 by default). You should be redirected to the admin console and a prompt should pop up asking for a password.

Additional information on this topic can be found using the link below:

http://httpd.apache.org/docs/2.2/howto/auth.html

Written DS and reviewed by FS (1/30/2014)