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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
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. |