#1  
Old 28th November 2005, 00:48
mtamaos mtamaos is offline
Junior Member
 
Join Date: Nov 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default .htaccess

Hello, sorry but i have another probleme with apache autentication. In first directory i have /htdocs , where is my site , is protect with httpd.conf :

AuthName "TESTE"
AuthType Basic
AuthUserFile
require valid-user
But i want another protect directory . I make another directory like teste2 and i put there .htacess with :

AuthType Basic
AuthName "DIRECTORIO EM MANUTENCAO"
AuthUserFile directory with password and user
require valid-user

ok, when i enter my first directory like http://127.0.0.1 , he make autenticantion, but when i try second sirectory he don't make autentication, what can i do ???

My http.conf

# global (server-wide) SSL configuration, that is not specific to
# any virtual host
Include /etc/apache2/ssl-global.conf

# forbid access to the entire filesystem by default
<Directory />
Options None
AllowOverride All
Order deny,allow
Deny from all

# Autenticao de Usurio
AuthName ")(()()()()()()()()((((((((::::::::::::::::()()( )()()()()()((()()()(("
AuthType Basic
AuthUserFile directory to password
require valid-user

</Directory>

# use .htaccess files for overriding,
AccessFileName .htaccess
# and never show them
<Files ~ "^\.ht">
Order allow,deny
Deny from all
</Files>
Reply With Quote
Sponsored Links
  #2  
Old 28th November 2005, 12:04
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,796
Thanks: 840
Thanked 5,612 Times in 4,423 Posts
 
Default

Is thsi " AuthUserFile directory to password" an absolute path?
Reply With Quote
Reply

Bookmarks

Thread Tools
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 On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig, Drupal, and .htaccess jon335 General 23 16th November 2008 14:22
.htaccess PHP - Hobe it make sence. Joe-Montana Server Operation 3 5th November 2005 02:36
Need help with sites images dirs. SkIRmiS Installation/Configuration 11 26th September 2005 16:24
Suse 9.3 And ModReWrite marketingmaven Server Operation 13 18th August 2005 11:40
.htaccess / Apache kermit Server Operation 1 18th May 2005 17:32


All times are GMT +2. The time now is 01:50.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.