|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
hi all
Friends i have successfully implemented HTTP user authentication on a desired directory. Now the problem is this that i want to implement the same thing without editing my httpd.conf file.Presently i have to type the following lines in mine httpd.conf file. <Directory [location of secured folder]> AuthType Basic AuthUserFile [location of .htpasswd file] AllowOverride AuthConfig require valid-user </Directory> can anyone tell me a way so that i can implement User authorisation without typing these line in httpd.conf file bcoz due to some limitations i cant restart httpd service after changing conf file responses are awaited thanks a lot for ur time |
|
#2
|
||||
|
||||
|
Stick those lines (minus the <Directory> tags) in .htaccess in the directory you want to protect. Provided you've got the appropriate AllowOverride directive in your main conf file (allowing .htaccess files to override the main conf), you can do this on a per-directory basis without editing the main conf and restarting apache each time.
__________________
Please don't PM me asking for solutions outside the scope of a thread. Keeping all responses in a thread stands to help others who come along later, which is after all what this forum's all about. |
|
#3
|
|||
|
|||
|
thanks buddy
i am doing the way u said hope to resolve the problem thanks |
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Web Server Configuration > Http User Authentication Problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|