• 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.

httpsdocs redirecting to httpdocs

R

RicardoL

Guest
Greetings,

I'm having some problems with my files in httpsdocs. When I try to open them in my browser, instead of opening the file in httpsdocs it tries to open one in httpdocs with the same name. If there's no file in httpdocs then all I get is a 404.

For instance, if I have httpsdocs/path/file1.php, httpsdocs/path/file2.php and httpdocs/path/file1.php, trying to open https://www.server.com/path/file1.php will open instead http://www.server.com/path/file1.php, and trying to open https://www.server.com/path/file2.php will show a 404 error page.

Both httpdocs and httpsdocs have the same owner and group, same privileges, I don't really understand why is it acting this way but I had been working with the same setup in a previous version of Plesk (6.0 I think?) on a different server and everything worked as it should.

If anyone could please point me in the right direction I would appreciate it, and accept my apologies in advance if there's already an old thread with a similar case (I didn't find any) or if the question is plain stupid. I honestly have no idea on how to fix it.

Thank you for your time.
 
Did you tried to reconfigure vhost settings with /usr/local/psa/admin/sbin/websrvmng (--help option for details)?
 
Thanks for your quick answer, IgorG.

No, I didn't try it. Is websrvmng -u going to affect the files under httpdocs and httpsdocs or just the configuration for the virtual host? I ask because the server is already in production and I can't afford downtime until the weekend.
 
Only vhost settings will be reconfigured. vhost's content will not be affected.
 
I will give it a try in a few hours and post back here, thank you very much.
 
Hello,

Please make sure that in Plesk -> Domains -> domain.com -> Webhosting Settings ,

Use a single directory for housing SSL and non-SSL content is not checked.

If it's checked the content on httpdocs will also be used for https.


Cheers.
 
Thank you very much, CatalinS. It's sad but I AM actually that stupid.

Didn't see the option, didn't see it checked :)

Thank you also, IgorG for the help!

Best regards,

Ricardo.
 
Back
Top