Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SSL Server Configuration


chase

Recommended Posts

Posted

My Linux server running Fedora (core 2) with Plesk Panel is automatically configured that regular pages are physically stored in www.mydomain.com/httpdocs/ and ssl pages should be physically stored in www.mydomain.com/httpsdocs/

 

In order for osCommerce to work properly, must I change the default configuration of the server, or can I configure osCommerce in the includes/configure.php or something else to take into account the server configuration? Can someone please help me with this?

Posted

If this is your own server and you have the choice of which control panel to use then change from Plesk to either cPanel or Ensim now. It'll save you lots of grief and you won't have that old, outdated, and rubbish two-folder system for httpdocs and httpsdocs to deal with.

 

There are two possible solutions, if you stick with Plesk. One is to duplicate all files and folders from the httpdcos folde rin the httpsdocs folder - thus reducing the amount of space on your hard drive effectively by 50%.

 

Creating a normal symbolic link from httpsdocs to httpdcos will not work with Plesk. The code below was posted by someone who has a Plesk server themselves. I can't vouch for it.

 

You need to create a vhost_ssl.conf file in

/home/httpd/vhosts/domainname.com/conf/

with directives pointing to httpdocs rather than httpsdocs

If your host is using Plesk (I know i run a Plesk based server), in the case of plesk you need to add a vhost_ssl.conf file to the conf directory of the site and point any reference to httpsdocs to httpdocs

e.g.

DocumentRoot /home/httpd/vhosts/site.com/httpdocs
<Directory /home/httpd/vhosts/site.com/httpdocs>
<IfModule mod_perl.c>
<Files ~ (\.pl)>
SetHandler perl-script
PerlHandler ModPerl::Registry
Options ExecCGI
allow from all
PerlSendHeader On
</Files>
</IfModule>
<IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_value open_basedir "/home/httpd/vhosts/site.com/httpdocs:/tmp"
</IfModule>
SSLRequireSSL
Options +includes +ExecCGI
</Directory>
<IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_value open_basedir "/home/httpd/vhosts/site.com/httpdocs:/tmp"
</IfModule>

 

Vger

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...