Results 1 to 5 of 5

Thread: been a while, but back with .htaccess struggles

  1. #1
    Squeeler Vini's Avatar
    Join Date
    Jul 2003
    Location
    Sheffield
    Posts
    1,769
    Thanks
    44
    Thanked
    8 times in 8 posts

    been a while, but back with .htaccess struggles

    at the minute

    i have:

    http://domain/uploading/ which requires login.

    but i dont want http://domain/uploading/thefilesthathavebeenuploaded/ to require a password or anything, ie. its open for all.

    how can i separate my sub folder from the root folder with regards access? i dont particularly want to have:

    domain/upload/
    domain/files/


    Code:
    AuthName "Authorisation Required"
    AuthType Basic
    AuthUserFile  /path/to/my/.htpasswd
    require valid-user
    is the content of my current htaccess

  2. #2
    Seething Cauldron of Hatred TheAnimus's Avatar
    Join Date
    Aug 2005
    Posts
    17,147
    Thanks
    798
    Thanked
    2,151 times in 1,407 posts
    i've no idea as to if this would work (as deny i personally think should take priority over allow), but if you have a .htaccess in the sub folder that requires no auth. If they dosen't work try "Allow from all" in it.

    but really not sure, not been using apache lately, not been missing it!
    http://httpd.apache.org/docs/1.3/howto/auth.html
    throw new ArgumentException (String, String, Exception)

  3. #3
    Squeeler Vini's Avatar
    Join Date
    Jul 2003
    Location
    Sheffield
    Posts
    1,769
    Thanks
    44
    Thanked
    8 times in 8 posts
    hmm, looking at that maybe i need

    <Directory /usr/local/apache/htdocs/upload>
    AuthType Basic
    AuthName intranet
    AuthUserFile /www/passwd/users
    Satisfy any
    </Directory>


    in the directory i want to block

    and

    <Directory /usr/local/apache/htdocs/upload/files>
    Order allow,deny
    Allow from all
    Satisfy all
    </Directory>

  4. #4
    Seething Cauldron of Hatred TheAnimus's Avatar
    Join Date
    Aug 2005
    Posts
    17,147
    Thanks
    798
    Thanked
    2,151 times in 1,407 posts
    how's that working out for you, sorry i've got no apache here to test it on (.net IIS makes me happy)
    throw new ArgumentException (String, String, Exception)

  5. #5
    Squeeler Vini's Avatar
    Join Date
    Jul 2003
    Location
    Sheffield
    Posts
    1,769
    Thanks
    44
    Thanked
    8 times in 8 posts
    it didne work.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Paypal dispute - Actually sending the goods back to the seller
    By aeonf242 in forum General Discussion
    Replies: 1
    Last Post: 17-06-2006, 10:01 AM
  2. Mesh Again!!
    By atomicjeep in forum Pre-Built Laptops and Desktops
    Replies: 34
    Last Post: 03-04-2006, 07:54 PM
  3. Welcome Back
    By Jonny M in forum Networking and Broadband
    Replies: 26
    Last Post: 24-07-2003, 03:08 PM

Posting Permissions

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