Skip to content

Create an application

Navigate to the account for which you want to create an application.
Select New application in the Application widget.

If the account does not have an application associated with it yet, the option listed is named Create your first application.

Enter the required information in the Application details section.
Domains or aliases for this vhost can be added in the Domains section at bottom.
When Name is left empty, the application will be created with the name default.

Name - name of the application (or vhost). This does not need to be the domain name
Documentroot suffix - option to change the documentroot path
Technology - choose php-fpm to enable PHP for this application, or no_technology if PHP is not required
Index file - option to choose the index file name and extension
Force HTTPS - this setting will redirect all HTTP traffic to HTTPS for domains that have an SSL certificate available
Environment variables - option to add environment variables
Alias directives - option to add alias directives
Proxy passes - option to add proxy passes

Multiple applications

When creating multiple applications under one account, it is important to keep the following in mind:
The PHP version for each application is configured on the account level. All applications under the associated account will run on the same PHP version.

This means that multiple applications on the same account will be using the same PHP-FPM pool.
(e.g. if a testing and a production application are created on the same account, failures in testing can impact the production application).
Splitting up applications into different accounts also allows for selecting a different PHP version per account.

Add the domain(s) that need to be linked to this application in the Domains section.
Sock will automatically add the 'www.' subdomain for each domain for easy of use.

preview URL

Each application will be created with a preview alias as Default domain.
This can be used to reach the application if no domain is attached yet.
If needed, the Default domain can be disabled or re-enabled later on.