Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 3 of 3

This is a discussion on Pass Protect Question in the Shared & Semi-Dedicated forum
I've searched the forum and the JagPC FAQ and Manual and am still unable to find what I'm looking for. How can I password protect ...

  1. #1
    glo
    glo is offline
    ..........
    Join Date
    Aug 2002
    Posts
    285

    Pass Protect Question

    I've searched the forum and the JagPC FAQ and Manual and am still unable to find what I'm looking for.

    How can I password protect my main domain? Not the subdirectories, I know how to do that and where, but I'm unable to pass protect the main index of my domain. So when someone goes to say like http://abc.com they have to enter the userid and pass to get in.

    Can this be done via .htaccess?

    Thanks for your time!
    Gina

  2. #2
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003
    Yes you can do it with .htaccess. (I'm actually surprised that CPanel doesn't let you password protect the whole site...) See Authentication, Authorization, and Access Control on the Apache site for details.

    Note that to make the password file you'll need SSH access. Alternatively, create a dummy directory on your site somewhere and password protect that and add user(s) to it. The htpasswd file for that directory will be located on your iste at /home/USERNAME/.htpasswds/DUMMYDIRNAME/passwd Use this as the path in AuthUSerFile in .htaccess (replace the uppercase portions with the appropriate values, of course).

    --Jason
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

  3. #3
    glo
    glo is offline
    ..........
    Join Date
    Aug 2002
    Posts
    285
    Thanks Jason! I'll give it a try.

    I wish it was as simple as setting up pass protection for sub directories!

    Can't wish for everything, though

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
  •