X

Help Articles are product support tips and information straight from the NV5 Geospatial Technical Support team developed to help you use our products to their fullest potential.



4494 Rate this article:
No rating

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)

Please login or register to post comments.
Featured

End-of-Life Policy Enforcement for ENVI 5.3 / IDL 8.5 and Earlier Versions

5/6/2024

April 1, 2024 Dear ENVI/IDL Customer,  We are reaching out to notify you of our supported... more »

How to Upgrade licenses to ENVI 6.x / IDL 9.x

12/5/2023

What is the new Upgrade function? Starting with ENVI 6.0 and IDL 9.0, we have implemented an... more »

What to do if the 'License Administrator - License Server' for the Next-Generation License Server does not start?

6/13/2023

Background: With the release of ENVI 5.7 & IDL 8.9 and the corresponding Next-Generation licensing... more »

Next-Generation Licensing FAQ

4/28/2023

  NV5 Geospatial has adopted a new licensing technology for all future releases of our ENVI, IDL... more »

The IDL Virtual Machine

6/6/2013

What is the IDL Virtual Machine? An IDL Virtual Machine is a runtime version of IDL that can... more »