Hostaan web hosting uses the Plesk control panel and typically an Nginx + Apache combination: Nginx often handles traffic first, and dynamic content may continue on to Apache. If you need special Nginx rules for your site, they are usually added through customer support, not by you directly in the server's root configuration.
Short answer
Nginx settings cannot be changed freely at server level from Plesk. For a single domain you can in some cases write short additional directives in Plesk's Apache & nginx Settings view, but complex or risky changes (SSI, location blocks for specific file paths, adding headers to static PDFs) are made safely by the support team.
Why are changes made through support?
- Incorrect Nginx syntax can stop the whole domain or the whole subscription from working.
- Plesk generates and maintains a large part of the configuration automatically, so manual overrides can disappear during updates unless they are made in the right place.
- On a shared server, rules must be scoped so that they do not affect other customers.
When is an Nginx change needed?
Typical requests:
- SSI (Server Side Includes), for example
<!--#include virtual="header.shtml" -->in .shtml files. SSI may have been enabled on your old server; at Hostaan it has to be enabled separately for the domain. - HTTP headers for specific files, for example
X-Robots-Tag: noindex, nofollowonly for PDF files in a certain uploads folder, so that they are not indexed by search engines. - Redirects or location rules that cannot be done reliably with .htaccess or through WordPress.
Can the same be done with a .htaccess file?
If the request only concerns content handled by Apache, a
.htaccess file in the site root is sometimes enough (see password protection and .htaccess). However, Nginx can serve static files (such as PDFs) directly without Apache, in which case .htaccess alone may not add the header you want. This is why PDF and similar cases are often handled with an Nginx rule through support.Plesk's "Additional nginx directives" field
Path: Websites & Domains → select the domain → Apache & nginx Settings → Additional nginx directives.
This field should only be used for small, domain-specific additions, and invalid content can take the site down immediately. We do not recommend trying complex
location blocks without a backup and experience. In unclear cases, ask support to make the change.How to request a change from customer support
Contact tuki@hostaan.fi or use the contact form. In the ticket, tell us:
- The domain (for example blog.example.com) and whether it is a primary domain or a subdomain.
- The goal in plain language (for example "enable SSI for .shtml files" or "keep PDFs in the uploads folder out of the Google index").
- The path or file type the rule applies to (for example
/wp-content/uploads/oma-kansio/*.pdf). - An example rule, if you have one from your previous server. Support will check it and adapt it to the Plesk environment.
- Optionally, your Plesk subscription or customer number to speed up handling.
Examples (for illustration only)
SSI: a request might sound like this: "Enable SSI for the domain example.fi so that the .shtml include works like on the old server." It is implemented on the server side, and you do not need to change your site's HTML.
PDF + X-Robots-Tag: the customer can supply the logic:
location ~* ^/wp-content/uploads/oma-kansio/.*\.pdf$ {
add_header X-Robots-Tag "noindex, nofollow" always;
}
Support adds a corresponding, tested rule to the domain's configuration. If needed, the rule also gets the proper file serving (for example
try_files) so that it works together with Plesk's Nginx settings.Note! Do not copy nginx rules straight to production without testing. An invalid location block can return 404 errors for all pages.
Related guides
- Changing nameservers, also through support
- Website migration: after a migration, old server settings are not carried over automatically
- DNS management guide