Results 1 to 8 of 8
  1. #1
    Join Date
    Aug 2006
    Posts
    18
    Plugin Contributions
    0

    Default Running Admin under SSL

    I was wondering whether anyone is doing this on a live shop? As in setting the admin/includes/configure.php to contain:

    define('HTTP_SERVER', 'https://<My SSL URL>');

    I am interested in the added security that this option offers and have tentatively set it up on a live (but not yet under use) site.

    I know that this will slow things down but the question is 'by how much?'. It seems that general admin is fine but I suspect that uploads of files e.g. images etc will be very slow as they need to be encrypted.

    Maybe a solution would be to protect only the 'reports' and 'customers' menus. Does anyone have any thoughts on this?

    cheers

  2. #2
    Join Date
    Nov 2004
    Location
    Norfolk, United Kingdom
    Posts
    3,036
    Plugin Contributions
    2

    Default Re: Running Admin under SSL

    If your site is hosted on an Apache server and .htaccess facilities are fully enabled then you may be able to do this.

    1. In the .htaccess file inside the 'admin' folder add this piece of code:

    Code:
    SSLRequireSSL
    ErrorDocument 403 https://www.yourdomain.com/admin/
    This will require that all connections to the admin panel are via a secure connection (https). It does not work on all websites, and won't work with a shared ssl.

    Vger

  3. #3
    Join Date
    Aug 2006
    Posts
    18
    Plugin Contributions
    0

    Default Re: Running Admin under SSL

    Thats an interesting point, I hadn't thought of implementing it that way. In which case it would be possible to map selected pages onto an SSL URL using mod_rewrite. I might try this . . .

    I'll let you know how I get on . . .

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Running Admin under SSL

    If you want full secure in the Admin ... just edit the file:
    /admin/includes/configure.php

    Set both URLs for the Admin to be your secure URL ...
    define('HTTP_SERVER', 'https://www.your_domain_name.com');
    define('HTTPS_SERVER', 'https://www.your_domain_name.com');
    Turn on the enable secure:
    define('ENABLE_SSL_ADMIN', 'true');
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Sep 2005
    Posts
    26
    Plugin Contributions
    1

    Default Re: Running Admin under SSL

    Hi Ajeh,
    I'm using v1.3.0.2, and what you suggested does not work. The Login is secured by SSL, but the remainder of the site is not forced to use SSL. (I dont know if thats some kind of bug or not.)

    If it helps to know this, our 'HTTP_SERVER' and 'HTTPS_SERVER' are different: www.ourname.co.nz, and secure.ourname.co.nz.

    In admin configure.php, 'ENABLE_SSL_CATALOG' AND 'ENABLE_SSL_ADMIN' are set to 'true'.

    I'll have a crack at using the htaccess file for the mo. If this is a bug and i got it wrong, someone please PM me!

    Thanks all,
    Theodin

  6. #6
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Running Admin under SSL

    It's not a bug. It's by design as of present time.

    If you want your entire admin to be SSL, then use https:// URL's in your /admin/includes/configure.php, as Ajeh outlined above... BOTH defines.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Mar 2006
    Location
    Fresno, California
    Posts
    620
    Plugin Contributions
    0

    Default Re: Running Admin under SSL

    Ahh, I've always wanted to know this but was afraid to ask.

    I took Ajeh's directions and edited the admin/includes/configure.php file. However, I hit one snag on the FTP upload. Permission denied, unable to rewrite...blabla

    Just a quick note for all the other poor souls that can't make it work:

    The CHMOD permissions were set at 444. So I had to go into cpanel, set permissions to 644, upload file via FTP, go back to cpanel, change permissions back to 444.

    Now my entire admin is in https. Thanks Ajeh!

  8. #8
    Join Date
    Apr 2007
    Posts
    1
    Plugin Contributions
    0

    Default Re: Running Admin under SSL

    I know this is old thread, but I got an idea from Vger's post and managed to make it work. I hope someone will find this usefull.



    All I have to do was switch lines, "ErrorDocument" first, then "SSLRequireSSL" second, like :
    Code:
    ErrorDocument 403 https://www.yourdomain.com/admin/
    SSLRequireSSL

 

 

Similar Threads

  1. Does Admin Need to be under SSL?
    By burgundy in forum General Questions
    Replies: 2
    Last Post: 11 Jun 2009, 12:25 AM
  2. SSL for ZenCart running on AddOn Domain - Suggestions?
    By LaserGecko in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 13 Feb 2008, 06:06 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg