Faspex and Connect Server on one Linux system through a single HTTP Apache Server

Goal

This article describes how to set up Connect Server on Linux together with Faspex so that both applications are accessible via a single HTTP server for web interaction from the outside world. This installation was tested with CentOS 6.3 and 6.5, Aspera Faspex 3.0.3 and 3.9.2 and Aspera Connect Server 3.0 and 3.5.4.

The Faspex Apache HTTP server will be configured as a reverse-proxy for the Connect Server application. This facilitates deployment in hosted and firewalled environments where Faspex and Connect Server would be accessible at the following:

Note that accessing your domain at  https://aspera.my-Domain.com redirects to the Faspex web interface. If you would like to change the default redirect to your Connect Server, see https://support.asperasoft.com/entries/23205271-Defaulting-redirect-to-Connect-Server-instead-of-Faspex-on-a-combined-Faspex-Connect-Server-install

Preparation

First install the Connect Server, then Faspex on the same Linux system. Follow the installation guides.

Before you install Faspex you will need to turn off httpd (apache2, according to distribution) if it is installed and running on your system, as both applications will be using the Apache HTTP server that comes with the Faspex installation. You can turn off httpd with the following command:

/sbin/service httpd stop

 

Instructions

1. Create a file named aspera.connect.linux.conf in the following location:

  • /opt/aspera/common/apache/custom/aspera.connect.linux.conf

2. Open the file in a text editor and paste in the following content (you will notice it looks similar to a step in the Connect Server installation): 

#BEGIN_ASPERA

<Directory /opt/aspera/var/webtools>

   AllowOverride All

   Allow from all

</Directory>

<Directory /opt/aspera/var/webtools/scripts>

   AddHandler cgi-script .pl

   SetHandler cgi-script

   Options +ExecCGI

   AllowOverride All

</Directory>

ScriptAlias /aspera/scripts/ "/opt/aspera/var/webtools/scripts/"

Alias /aspera/ "/opt/aspera/var/webtools/"

#END_ASPERA

 

3. Restart the Faspex Apache with the following command:

asctl apache:restart

 

4. Enable system-level security. Doing so allows the Connect Server interface to show or hide controls such as the Delete and Create Folders for users depending on their permissions.

Run the following command to enable secure permissions:

sudo /opt/aspera/sbin/enablesecure enable

 

You will be prompted to enter the name of the user running Apache. Type in ashttpd and press enter:

User running apache (default apache): ashttpd

 

The command will generate text that you need to copy and paste into your /etc/sudoers file. In order to edit your /etc/sudoers file, run the following command which will open a text editor such as vi:
sudo visudo

Paste the text from the secure permissions command at the end of the file, and save your changes.

5. You are now running Faspex and Connect Server on your Linux system through a single HTTP Apache server.

Have more questions? Submit a request

0 Comments

Article is closed for comments.
Powered by Zendesk