Open your web browser and enter the server’s name in the location bar, eg.
http://example.default.bytemark.uk0.bigv.io. There is no default web page. You’ll see a 404 error when you try to access the web site, until you create a page. You can do this by uploading a simple
index.html file to the directory
/srv/example.default.bytemark.uk0.bigv.io/public/htdocs/ for example, as follows:
- Create a simple HTML file named
index.html. It has been assumed that it has been saved in the directory called
- Start up FileZilla and connect to your server. The file
index.htmlshould show up in the lower left-hand pane. In the right-hand pane the
/srv/directory will be shown.
- HTML files should be uploaded to the
public/htdocs/directory. This can be found by revealing the contents of
srv/by clicking the + to its left in the top-right hand pane. public/htdocs/
- Now right-click on
index.htmlin the lower left-hand pane, and select Upload from the menu. The file is uploaded to the
htdocs/directory on the server.
- Refresh your web browser to see the result.
Note: This example shows uploading a web page written in HTML, called
index.html. This file could also be written in PHP, in which case the file should be called
Hosting a web page using your own domain
The previous section dealt with setting up a web page using the default domain associated with the server. A Symbiosis system can host many domains without any extra configuration. This section deals with configuring a second domain.
It has been assumed both that your server is hosted at Bytemark, and that this second domain is using the Bytemark name servers.
For the purposes of this tutorial, the domain
my-brilliant-site.com is being hosted on the server
- With FileZilla connected to the server, make sure the
Remote sitetext field is pointed at the
/srv/directory a. Right click on the folder icon
- From the right-click menu select
Create directoryand in the
Create directorypop-up enter
- Click the
OKbutton c to create the directory
- Repeat this step to complete the domain tree with the directories
- Create another
- Upload it as before, but this time into the
htdocs/directory in the
Within a hour, the DNS records for
my-brilliant-site.com will be generated and uploaded to the Bytemark domain name servers. Navigating to that site will then show our new index page.
At this point, the site will also be visible at both
www.my-brilliant-site.com. This is part of the Symbiosis set-up; if different pages were required at
www.my-brilliant-site.com, a separate directory tree should be created for
www.my-brilliant-site.com, with a different content as needed.
Handling wildcard domains
By default, the contents of
/srv/my-brilliant-site.com/public/htdocs/will be served for that domain as well as any subdomains of that domain, for example:
By default, Symbiosis will create DNS records for only the raw domain and the www subdomain. To use anything other than these, you will need to create further DNS records for either the specific subdomains you wish to serve, or a Wildcard DNS record to match anything else. Please see the reference manual for more information on how to do this.
Testing a new domain
It is possible to test the content associated with a new domain before it has been registered or had any DNS configuration done. This is done using the
For example, to view the site
my-brilliant-site.com hosted on the server
example.default.bytemark.uk0.bigv.io, simply head to
This testing URL is immediately available following the upload of the
Note that there is no
www at the start of the testing URL.
Note: This facility does not play well with certain directives that can be used in Apache
htaccessfiles, especially rewrite rules.
Configuring SSL Hosting
By default, Symbiosis will try to use certificates from LetsEncrypt to secure your site. These certificates are free at the point of use and issued automatically. They are trusted by all modern browsers, and largely obviate the need to acquire certificates from commercial providers.
As a result no action is needed to configure SSL hosting for your sites as it will happen for you automatically. SSL Configuration gives more details on exactly how the mechanism works, and is worth reading if you wish to replace the LetsEncrypt certificates with some issued by a third party provider.
Note: Extra IP addresses are no longer needed to host multiple SSL-enabled sites on one server. Server Name Indication (SNI) is supported by all modern browsers, allowing multiple SSL sites on one IP. If you wish to use multiple IPs, then they can can be allocated in the normal way.
Making SSL mandatory
If you prefer to ensure that each visitor to your website uses the SSL-protected site you can make it mandatory by creating an empty file called
config/ssl-only. This should cause the site to be reconfigured to redirect all traffic to the SSL-secured site. When this setting is applied, the HSTS header is automatically sent.