- Plesk for Linux
PHP files on the default web server page are downloaded instead of being executed.
Such behavior is expected - only HTML files in the
/var/www/vhosts/default/htdocs default root path can be executed.
To serve domain contents on the IP address, follow the article.
As a workaround, set up a redirect from Web Server Default Page to the already existing domain.
Go to Subscriptions and create a new subscription with the main server domain name, e.g.
example.com, by clicking the Add Subscription button.
Connect to the server via SSH.
.htaccessfile under the
# touch /var/www/vhosts/default/htdocs/.htaccess
Open the created
/var/www/vhosts/default/htdocs/.htaccessfile via any text editor and add the following line to it in order to set up the 302 redirect to the domain created at step 2:
CONFIG_TEXT: Redirect 302 / https://example.com/