Jump to content

SSL sends user to wrong folder


micah1701

Recommended Posts

On of my clients is a church website: www.fbcmct.ORG

 

they are hosted on a VPS server.  The hosting account is actually under the domain name: www.fbcmct.COM and the .org is like a "virtual" site.

 

when you go to the .com version of the site, it just forwards you to the .ORG version with a php header redirect

 

Today i installed an SSL certificate for the domain name www.fbcmct.org but when you go to https://www.fbcmct.org, instead of reading the directory for the virtual site, it plops you in the root directory of the .com version of the site.

 

http://www.fbcmct.com  resolves to /web/root/  which has a file that forwards the user to the .org site.

http://www.fbcmct.org  resolves to /web/root/fbcmct/  which is the main site.

https://www.fbcmct.org  resolves to /web/root/  which then just forwards the user to the non-ssl version, so thats no good.

 

I don't know if that means i screwed up the ssl certificate installation somewhere or if thats just they way these things work and you can't use virtual domains with SSL certs but now I need to find a workaround.

 

so basically I need https://www.fbcmct.org/someDirectory/someFile.html to be to be read from the path .../root/fbcmct/someDirectory/someFile and not just /root/someDirectory/someFile because nothing exists at the latter.

 

Any thoughts?

 

 

Link to comment
Share on other sites

I went through the ssl.conf file and found:

 

# General setup for the virtual host, inherited from global configuration
#DocumentRoot "/var/www/root/"
ServerName fbcmct.com:443

and changed it to:

DocumentRoot "/var/www/root/fbcmct/"
ServerName fbcmct.com:443

 

This SEEMS to have fixed the problem. https://www.fbcmct.org is resolving to the right place now!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.