Connect Server is a web-based file server that enables file access through a browser, and transfers files using the Aspera Connect Browser Plug-in. You can configure your system's Apache server to host Connect Server's Web UI. Additionally, you can set up HTTP fallback to establish HTTP- or HTTPS-based file transfers with clients that don't have FASP connectivity. The files described below may have different paths or your Apache server could require additional settings, depending on your operating system's distribution and configuration. For additional information, see your operating system documentation or contact Aspera Technical Support
|RedHat, Centos, Fedora||/etc/httpd/conf/httpd.conf|
ServerName www.ConnectServerName.com ServerName 10.0.0.1
#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
|2.2|| Run the following commands to enable the requisite modules:
$ sudo a2enmod dir $ sudo a2enmod cgi $ sudo a2enmod cgid
Important: These commands do not work on RHEL or CentOS. For these versions of Linux, you must edit the Apache configuration file as described below for Apache 1.3 and 2.0.
|1.3, 2.0||In Apache's configuration file, add or un-comment the following
LoadModule dir_module modules/mod_dir.so LoadModule cgi_module modules/mod_cgi.so
After modifying the Apache configuration file, save and close it.
Once you have created your private key and Certificate (or you are using the unsigned Certificate provided by Aspera), see Enable SSL (Apache) for instructions on enabling SSL on your system.
$ /etc/init.d/apache restart
Note: This command does not work on RHEL or CentOS. You must use the command described below for Apache 1.3 and 2.0.
|Apache 1.3, 2.0||
$ /etc/init.d/httpd restart
$ sudo /opt/aspera/sbin/enablesecure enable
Once the script is executed, you will be prompted to input the name of the Apache user.
User running apache (default apache):
Based on your input, the script generates text similar to the following. Use visudoers to copy and paste the generated text into your /etc/sudoers file. In the following example output, apache is the account that is running Apache and /opt/aspera is the Aspera installation directory.
# BEGIN Aspera Connect Server # The user account that runs the web server will impersonate # the logged-in user to present that user's files and folders. Defaults env_keep += "SERVER_NAME REQUEST_URI REQUEST_METHOD REMOTE_USER QUERY_STRING CONTENT_LENGTH SESSION_ID CSRF_TOKEN" Defaults:apache !requiretty apache ALL=(ALL) NOPASSWD: /opt/aspera/var/webtools/scripts/aspera-dirlist.pl, SETENV: /opt/aspera/var/webtools/scripts/aspera-dirlist.pl # END Aspera Connect Server
To disable the secure permissions, run the enablesecure script again with the argument disable.
$ sudo /opt/aspera/sbin/enablesecure disable