Nexology Community
 
     
 
   

Go Back   Nexology Community > Support Zone > Plesk Control Panel

Reply
 
LinkBack Thread Tools Display Modes
Old 06-06-2007, 05:43 PM   #1
BBQ Time !!!
 
Join Date: Sep 2003
Location: Ramsey, NJ
Posts: 54
SSL in /httpsdocs folder?

I am using a remote server to obtain pricing for an ecommerce site I put on SIGMA. It is the first time I setup SSL. So the vendor says I have to put the SSL files in the same folder as my HTML files. I always put my HTML files in th e /httpdocs directory and I though when I installed the secure certificate it would automatically go into the /httpsdocs folder. Do I have to do a mod rewrite to make apache act as if the files were all in one folder? Like add this to .htaccess

RewriteEngine On
RewriteCond %{SERVER_PORT} !443
RewriteRule (.*) https://www.example.com/require-secure/ [R]

or

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

Thanks !!!
__________________
Mahalo Aloha Mal
Web Design Workplace
President_Bush is offline   Reply With Quote
Old 06-07-2007, 08:44 AM   #2
HaveANiceDay
 
middleground's Avatar
 
Join Date: Apr 2002
Location: MacTopia
Posts: 4,167
Quote:
Originally Posted by President_Bush
I am using a remote server to obtain pricing for an ecommerce site I put on SIGMA. It is the first time I setup SSL. So the vendor says I have to put the SSL files in the same folder as my HTML files. I always put my HTML files in th e /httpdocs directory and I though when I installed the secure certificate it would automatically go into the /httpsdocs folder. Do I have to do a mod rewrite to make apache act as if the files were all in one folder? Like add this to .htaccess

RewriteEngine On
RewriteCond %{SERVER_PORT} !443
RewriteRule (.*) https://www.example.com/require-secure/ [R]

or

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

Thanks !!!
Haven't done a bunch, but if you check option in domain setup for "Use single directory" it will write the rewrite for you.
Attached Thumbnails
SSL in /httpsdocs folder?-plesk_ss.jpg  
__________________
Every Day Above Ground Is A Good One !!

"A word to the wise ain't necessary -- it's the stupid ones that need the advice." -- Bill Cosby

MiddleGround | MGWebDomains.com | MGWebDomains.net

"With the Heart and Mind united in a single Perfect Sphere." (Neil Peart)
middleground is offline   Reply With Quote
Old 06-07-2007, 12:25 PM   #3
BBQ Time !!!
 
Join Date: Sep 2003
Location: Ramsey, NJ
Posts: 54
Slam dunk !!!

Middleground you RULE. That was it. I still don't understand exactly how it works but it somehow makes the application think the SSL certificate is in the same location as the HTML files (as the programmer wanted it) and it works. As you suggested. It must be executing the apache mod rewrite. I think the Secure certificate files are physically associated with the htppsdocs folder although I cannot see them with filemanager. Thanks much and have a great weekend.
__________________
Mahalo Aloha Mal
Web Design Workplace
President_Bush is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 07:35 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0 RC1
Copyright ©2001 - 2009, HostNexus