Documentation

Websites and domains

5 min read Updated From the StackRegent manual

Every subscription has a main domain and can have more domains, subdomains and domain aliases, as far as its plan allows. Each domain and subdomain is a website with its own document root and settings.

Open a subscription#

Click Websites & Domains in the menu. With several subscriptions, click Open next to the one you want. The subscription page shows:

  • buttons for Open website, File Manager, FTP Access, Mail, Databases, Backup Manager, Statistics, Scheduled Tasks and Resource Usage,
  • the Websites and domains card,
  • the Hosting card with IP address, system user, webspace and status,
  • the Resources card with usage against the plan.

Add a domain, subdomain or alias#

On the Websites and domains card:

  1. Click Add Domain, Add Subdomain or Add Domain Alias.
  2. Fill in the dialog:
DialogFields
Add DomainDomain name (for example example.net) and Document root
Add SubdomainSubdomain name, the parent domain from the list, and Document root
Add Domain AliasDomain alias name, For the domain, and Settings: Synchronize DNS zone with the primary domain, Mail service, Web service, Redirect with the HTTP 301 code
  1. Click Add. IIS is configured in the background.

The Document root is a folder inside your webspace. Leave it empty to use the suggested folder named after the domain.

An alias is another name for an existing domain: visitors and mail for the alias reach that domain. To remove a domain, subdomain or alias, click the cross next to it. Removing a website deletes it with its subdomains, aliases and document root folder.

Adding domains needs the plan permissions Domain creation, Subdomains management or Domain aliases management, and room in the plan's limits.

Website tools#

Click Manage next to a domain to open its page. The Summary card shows the document root, PHP, ASP.NET and Node.js versions and the preferred domain. The Website tools card has tiles for every tool, including Hosting Settings, PHP Settings, IIS Settings, ASP.NET Settings, SSL/TLS Certificates, DNS Settings, Logs and Connection Info.

Re-apply settings at the top writes all settings to IIS again, which helps after a failed change.

Hosting settings#

  1. Open the website and click Hosting Settings.
  2. Change what you need:
SettingMeaning
Document rootFolder inside the webspace, such as httpdocs or httpdocs/public
Preferred domainNone, www.\<domain\> or \<domain\>; the other name redirects with 301
SSL/TLS supportAllows HTTPS for the website
Permanent SEO-safe 301 redirect from HTTP to HTTPSSends visitors to HTTPS
PHP support, PHP versionWhether PHP runs and which installed version
Microsoft ASP.NET support, ASP.NET managed runtimeASP.NET 4.8 or 3.5
Web statisticsNone, Webalizer or AWStats
  1. Click Save. The change is applied to IIS.

Values you changed on the website are marked with a dot. Use subscription values sets them back to the plan's values.

If a setting is not allowed, the panel says "Your hosting plan does not allow changing … Ask your provider to enable it." For example, the PHP version needs PHP version and handler management.

PHP settings#

PHP Settings holds php.ini values of this website, such as memory_limit, max_execution_time, post_max_size, upload_max_filesize, display_errors and open_basedir, plus FastCGI values and Additional configuration directives in php.ini syntax. Empty fields use the server default. You can use the placeholders {DOCROOT}, {WEBSPACEROOT} and {TMP}. Several PHP versions can run side by side: each website uses the version chosen under Hosting Settings.

ASP.NET settings#

ASP.NET Settings edits what ASP.NET 4.x reads from the website's web.config:

  1. Tick Manage these settings in the website's web.config. When it is off, the panel leaves web.config alone.
  2. Set Custom errors, Default error page URL, Compile with debugging, trust level, Authentication mode, encodings and culture, Session state mode and Session timeout.
  3. Under Application settings, enter Connection strings (one per line: name=connection string) and Application settings (key=value).
  4. Click Save.

Optimize Website#

Open the website, then Optimize Website:

  • Compress content: Disabled; Compress static files (HTML, CSS, JavaScript, JSON, XML, SVG, fonts and text files are compressed once and kept compressed; safe for every website); or Compress all content (also the pages PHP, ASP.NET and Node.js make, on every request: smaller pages for a little more CPU). Images, video and archives are already compressed and are sent as they are.
  • Browser caching: how long visitors' browsers keep images, CSS, JavaScript and fonts before asking again. Use a short time while you are still changing the design.

Click Save. Check with PageSpeed measures the result.

IIS settings#

IIS Settings controls directory browsing, Default documents, in search order, error pages, compression, Maximum request size, Custom response headers, HSTS and Access restrictions by IP address.

Hosting options of the subscription#

If your plan allows it, the subscription's Hosting card has Hosting options: performance, application pool and log settings. Limits can be lowered, not raised above the plan.

SSL/TLS and Let's Encrypt#

  1. Open the website and click SSL/TLS Certificates.
  2. On the Let's Encrypt card, tick the names to include, for example example.com and www.example.com. Each name must already point at the server in DNS.
  3. Click Get a free certificate. This takes up to a minute.
  4. Under Certificate in use, check that Secure the website with shows the new certificate.

Let's Encrypt certificates renew automatically. Plans with Keep websites secured with free SSL/TLS certificates issue them by themselves once DNS points here.

To use a bought certificate, click Upload on Certificates of the subscription (PEM files or PFX / PKCS#12), or Create CSR first and add the issued certificate later with Add certificate. Self-signed creates a certificate for tests.

If SSL/TLS support is off in Hosting Settings, switch it on there first.

Preview a website#

When your provider has set up Website Preview, the website page has a Preview button. It opens the site from this server before your domain's DNS points here, so you can check a moved website before switching DNS.

  • DNS
  • Files and FTP
  • WordPress and applications
Was this article helpful?

Something missing? Ask in the community or open a ticket.