opening access to one directory

This is a discussion on opening access to one directory within the Apache Web Server forums, part of the Web Server and Related Forums category; I've setup apache to use the .htaccess file for access to the site. I've done this from document ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-19-2006
userforgroups@hotmail.com
 
Posts: n/a
Default opening access to one directory

I've setup apache to use the .htaccess file for access to the site.
I've done this from document root directory, essentially protecting
everything below (I assume).

All seems to be fine, you try to access anything from htdocs root
down,etc you need a password....all looks good.

Now, here's what I want to do. I want this to be accessible by anyone,
without a password.

example:

www.somesite.com/opendir/????

Where opendir is the special directory I want everyone to be able to
get into without a password.
I've tried using the <Directory> directive allowing access to all on
this directory, but it seems to always still ask for password.

Can I do this, and how???
Thanks

  #2 (permalink)  
Old 03-19-2006
Robert Ionescu
 
Posts: n/a
Default Re: opening access to one directory

userforgroups@hotmail.com wrote:
> I've setup apache to use the .htaccess file


If you have access to the httpd.conf, why are you using .htaccess filesd
at all?

When (not) to use .htaccess files
-> http://httpd.apache.org/docs/2.0/how...cess.html#when

> I've tried using the <Directory> directive allowing access to all on
> this directory, but it seems to always still ask for password.


<Directory /full/physically/path/to/htdocs>
# note this section already exists
Order deny,allow
Allow from all

AuthName ...
AuthType Basic
AuthUserFile ....
</Directory>


<Directory /full/physically/path/to/htdocs/opendir>
Order deny,allow
Allow from all
Satisfy any
</Directory>

--
Robert
  #3 (permalink)  
Old 03-20-2006
userforgroups@hotmail.com
 
Posts: n/a
Default Re: opening access to one directory

I don't know that much about apache or its configuration, as you can
tell, I just wanted to temporarily, while I'm developing the site, only
allow people in based on username/password.
Using .htaccess files seemed to be the easiest and quickest.

I will do more reading from the docs, and see if there is another
easier way. It's only temporary though.

The issue is that I need the open area that I can specifically allow
anyone to access without username/password, but lock down the rest of
the site.

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:26 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0