- Plesk for Linux
How can I execute PHP files in default webserver page?
It's only possible to execute HTML files in default root path
and it's not recommended to change Plesk configuration for this default website.
Instead, you can create a subscription
to execute your PHP, manage databases, install certificates, etc.
Then, it's possible to create the following
file in default root path
with a redirect 302 to your main server domain:
# cat /var/www/vhosts/default/htdocs/.htaccess
Redirect 302 / https://plesk.example.com/