Rake task for configuring Shares web server

Rake tasks are scripts that allow you to retrieve, delete or update information on your Shares server using the command line. Rake tasks can perform actions on user accounts, shares and nodes. This article describes the rake task available for configuring web server settings. For more general information on Shares rake tasks see this article (Shares rake tasks).


You can use a rake task to configure the web server that hosts the Shares interface. The syntax for the rake task is the following:

Rake tasks must be run from within the appropriate location in the shares folder:
  • Linux Shares 1.8 and later: /opt/aspera/shares/u/shares/bin
  • Linux Shares earlier than 1.8: /opt/aspera/shares/u/shares
  • Windows: C:\Shares\www
rake data:web_server -- [options]


The available options are the following:

option description                                                                                      
--host host
The host or IP address for the Shares interface (required).
--port port
The port for connecting to Shares interface (required).
--tls true|false Whether to use a secure connection with SSL/TLS (default: true).


To set the web server to host my.shares.example on port 1234 with SSL/TLS disabled, you would use the following:

rake data:web_server -- --host my.shares.example --port 1234 --tls false
Powered by Zendesk