Results 1 to 2 of 2

Thread: Setting up basic authentication for Apache

  1. #1
    Join Date
    Jan 2009
    Location
    San Francisco, CA
    Beans
    213
    Distro
    Xubuntu 16.04 Xenial Xerus

    [SOLVED] Setting up basic authentication for Apache

    I did the following:

    sudo htpasswd -c /var/passwd/passwords allowed_user

    Then, I added the following to the /etc/apache2/httpd.config

    <Directory /var/www/secret_folder>
    AuthType Basic
    AuthName "Restricted Files"
    AuthUserFile /var/passwd/passwords
    Require user allowed_user
    </Directory>


    I restarted by
    sudo /etc/init.d/apache2 restart

    ... but the authentication system isn't kicking in.

    What did I miss?

    Thanks in advance.
    Last edited by lethalfang; December 5th, 2009 at 09:59 PM. Reason: [SOLVED]
    There are two sides to every story: my side and the wrong side.

  2. #2
    Join Date
    Jan 2009
    Location
    San Francisco, CA
    Beans
    213
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: Setting up basic authentication for Apache

    Silly me, the file should be httpd.conf, instead I've created httpd.config.
    There are two sides to every story: my side and the wrong side.

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
  •