• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

/vhosts/default directory is not behaving as expected

MatejM

New Pleskian
I have a really strange problem with the default vhost directory.

From what I understand the directory "/var/www/vhosts/default/htpdocs" should be used when there is no hosting setup for the domain (and the domain has valid DNS records pointing to the server) or if the domain is suspended in the panel.

The problem is when I type such domain in a browser or type in the IP address directly I get automatically redirected from http to https (which is also a problem) then one of the 3 things happen:
a.) if the directory "/var/www/vhosts/default/htpdocs" is empty I get the default apache page (that's expected).
b.) if there is an index.html file with only plain text inside, it loads and displays as expected
c.) if there is an index.html file with actual valid html inside it, the server loads content from the first still active domain on that IP (but without any images, css and other linked files)

The questions I have are:
Why is redirection from http to https happening?
How is it even possible to have such a strange behevior with "vhosts/default/htpdocs" directory?

Additional info:
- Plesk Panel for linux v11.0.9 Update #60
- CentOS 6.4 with default centos repositories
- "/var/www/vhosts/default/htpsdocs" directory has no impact whatsoever
- The setting in the Plesk panel for the IPs, have "none" as the default website and "default plesk certificate"

I have no idea where to even begin searching for this strange behavior. The apache and nginx config files (the global ones and the plesk autogenerated ones) seem to be ok, there are no signs that http to https redirection should be even happening.
 
Back
Top