• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

/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