micah1701 Posted February 13, 2008 Share Posted February 13, 2008 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? Quote Link to comment https://forums.phpfreaks.com/topic/90965-ssl-sends-user-to-wrong-folder/ Share on other sites More sharing options...
micah1701 Posted February 14, 2008 Author Share Posted February 14, 2008 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! Quote Link to comment https://forums.phpfreaks.com/topic/90965-ssl-sends-user-to-wrong-folder/#findComment-466687 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.