osCmax v2.5 User Manual
Results 1 to 5 of 5

.htaccess on /catalog/admin folder?

This is a discussion on .htaccess on /catalog/admin folder? within the osCmax v2 Installation issues forums, part of the osCmax v2.0 Forums category; The Install directions state to password protect the /catalog/admin folder using the .htaccess file and .htpasswd file. Not having luck ...

      
  1. #1
    Lurker
    Join Date
    Oct 2009
    Posts
    2
    Rep Power
    0


    Default .htaccess on /catalog/admin folder?

    The Install directions state to password protect the /catalog/admin folder using the .htaccess file and .htpasswd file.

    Not having luck with this.

    Is this needed though? If so, that means i have to sign in twice when logging in to the admin section? first to have access to admin folder and 2nd to login to the admin side of oscmax. just seems odd.

    if its needed, i'm all for it. but a little help with the .htaccess file. per instructions, i added this to the top of the .htaccess file:

    AuthType Basic
    AuthName "Locked Area"
    AuthUserFile /home/youraccount/.htpasswds/admin/passwd
    require valid-user



    Second i added this line --> user: password
    to an .htpasswd file.

    isn't that all i need to do? what does the "AuthUserFile" need to be? maybe i have that wrong. I changed mine to "/.htpasswds". that is where my .htpasswd file is. /.htpasswds/.htpasswd

    thanks!

    Justin

  2. #2
    osCMax Development Team
    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    3,014
    Rep Power
    36


    Default Re: .htaccess on /catalog/admin folder?

    Whilst not absolutely necessary, it is a VERY good idea to password protect your admin directory (as well as renaming it). Unless of course, you don't mind hackers getting into your site.
    Having spent a few hours repairing a hacked site , last week, I can categorically say that it IS a worthwhile thing to do.

    Password protection is easy to implement via cPanel.
    Example of an auto-generated .htaccess in the "newadmin" directory
    Code:
    AuthType Basic
    AuthName "newadmin"
    AuthUserFile "/home/account/.htpasswds/public_html/catalog/newadmin/passwd"
    require valid-user
    And the corresponding /home/account/.htpasswds/public_html/catalog/newadmin/passwd
    Code:
    user: aBYtNpWdb
    [Fictitious, showing a made up user and MD5 password ]

    EJ
    Last edited by ridexbuilder; 10-11-2009 at 02:41 AM.
    Hosting plans with installation, configuration, contributions, support and maintenance.

  3. #3
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default Re: .htaccess on /catalog/admin folder?

    A better way is to do limit access by IP or domain. That will eliminate the need to login two times, and will not allow any access to anyone else.

    Just google ".htaccess limit by ip"
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  4. #4
    osCMax Development Team
    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    3,014
    Rep Power
    36


    Cool Re: .htaccess on /catalog/admin folder?

    Well seeing "The Boss" ain't a user of UK's version of AOHell, with the dynamic IP addresses (they fluctuate by the minute, let alone on next net usage). Needless to say, I don't use 'em.
    Now restrict by domain... I like that idea... goes off to Google.
    Hosting plans with installation, configuration, contributions, support and maintenance.

  5. #5
    Lurker
    Join Date
    Oct 2009
    Posts
    2
    Rep Power
    0


    Default Re: .htaccess on /catalog/admin folder?

    Thanks for the help guys. I will look into the different options for the future. For the mean time, i set it up through cpanel. works like a charm.

    I was going to rename the folder "admin" to something else, but got an error when doing so. Seems there is a pointer to login.php that is looking for /admin/login.php. again, i will investigate this later. i feel alright about leaving it admin as long as it is password protected. I had a feeling just remaining the folder wasn't all that was involved, but thought i would give it a shot.

    Thanks!

Similar Threads

  1. Admin SSL .htaccess
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 09-27-2007, 03:10 PM
  2. Admin SSL .htaccess
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 01-15-2007, 03:01 AM
  3. protect admin folder never sucess
    By johnkwok in forum osCommerce 2.2 Installation Help
    Replies: 1
    Last Post: 09-06-2004, 05:02 PM
  4. cannot access admin after adding .htaccess
    By mega in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 04-28-2004, 07:36 AM
  5. Install in ROOT or CATALOG Folder???
    By Masalai in forum osCommerce 2.2 Installation Help
    Replies: 6
    Last Post: 12-29-2003, 04:05 PM

Bookmarks

Posting Permissions

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