1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Apache Passworded Folders - 403 Forbidden

Discussion in 'Windows Vista' started by tacoman359, Apr 8, 2008.

Thread Status:
Not open for further replies.
  1. tacoman359

    tacoman359 Thread Starter

    Joined:
    Jul 26, 2007
    Messages:
    868
    I followed this tutorial to set up passworded folders in Apache. After completing the tutorial, I found that when I tried to access my website it would ask me for my username and password, but then I would just give me a 403 Forbidden error. For some reason, it is no longer asking me for a username and password at all. I don't think I changed any settings that could have affected this, but I've really got no idea.
    EDIT: I restarted my computer and it asked me again. I've got no idea why it did this, because I deleted my private data last time. I might have still been connected to the server even though I left my site, causing it to not ask for a password, though.
    I've been through countless pages on Google. Many say to add an index.html file to the folder that it's happening to, but that defeats my purpose of viewing the directories and files, and needing a username and password to access them.

    This is what I added to the bottom of my httpd.conf file:
    Code:
    # Password Protect Folders/Files
    DocumentRoot "/Program Files/Apache Software Foundation/Apache2.2/htdocs"
    AccessFileName ht.ac .htaccess
    <Directory "/Program Files/Apache Software Foundation/Apache2.2/htdocs/files">
    AllowOverride All
    Options None
    Order deny,allow
    </Directory>
    This is my ht.ac (.htaccess) file:
    Code:
    AuthUserFile "C:/Program Files/Apache Software Foundation/Apache2.2/bin/passwd.txt"
    AuthName "a"
    AuthType Basic
    
    
    <Limit GET POST>
    require valid-user
    </Limit>
    Does anyone know how to fix this problem?

    EDIT: Oops, I put this in the wrong section... can an admin move it to the all other software forum?
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/701804

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice