Results 1 to 2 of 2

Thread: Apache2 Secure Login

  1. #1
    Join Date
    May 2007
    Beans
    48
    Distro
    Ubuntu 8.04 Hardy Heron

    Smile Apache2 Secure Login

    I've got an apache2 server running a HTTPS only site that is working fine and now I want to add a user name/password to it to secure the entire website. This way, only the home page with the login prompt will be visible to any user not logged in. What's the best way of doing this? I'm not new to apache2 but I'm pretty new to PHP and that seems to be what keeps turning up when I look for this. Could anyone provide a really good step-by-step through how I'd want to set this up (PHP or not)? I don't want to use .htaccess as they don't seem secure enough from my reading and they do not allow user accounts (plus I know how to do that and want to learn something new).

    Some notes:
    • I'll be creating and handling all logins/passwords
    • I don't have PHP installed
    • Must be secured (SSL/TLS) for both the login form, page, and transmission


    Thanks for any advice/help!

  2. #2
    Join Date
    Dec 2007
    Location
    Maryland, USA
    Beans
    Hidden!
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Apache2 Secure Login

    Coding your own authentication system will take a bit of time, and is probably beyond the scope of what we can cover here. If you want to start learning some PHP, I'd check out NetTuts.com as well as the PHP Documentation.

    Another option is to use a prebuilt authentication and content management system, like Joomla. Then you can just specify what users you want to have access to specific pages, or simply put your site into maintenance mode to force login for all users.


    Alex

Tags for this Thread

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
  •