• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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