|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
-== Directory listing with Authentification ==-
Hi all, me again
![]() When people logging on the http server (Apache), there is a index.html that is loaded (in /develop/opt/apache/htdocs/index.html) In this directory, I've put 2 symbolic links. 1: Documentation -> /develop/workspace/documentation 2: Public_Access -> /develop/workspace/public What I want to do is that every person that goes on my server, that the index.html is loaded (that's what's happening right now), but without asking for an authentification. You see what I means. And then, when the user will click on documentation, they will have a prompt for user/pass to login. But, in the public section, everybody would be allowed to go in, so no login. What I've done, I modified the httpd.conf file, and added these line for directory settings: Quote:
So, what it is supposed to do is do not let anyone entering the first page right? since the directory /develop/opt/apache/htdocs is where the index.html is... After, once clicking on Documentation, it should prompt the user... That's not what's happening here... As soon as I get on the server, you get a prompt, and then, no more prompt... How could I fix that??? Thanx a lot! |
|
#2
|
|||
|
|||
|
First off, DO NOT add -== in your subject title to make it more attractive, tell you what, it doesn't. Doing so would make your message a lower priority or it won't be read at all.
You only need to add this: Code:
<Directory "/develop/workspace"> Options FollowSymLinks AllowOverride None AuthType Basic AuthName "Internal" AUthUserFile /develop/opt/apache/conf/passwd Require user xdsldev </Directory> and remove your other two, especially the first one ( <Directory />) with Auth* lines. BTW, Apache has a directive called Alias to do all this, without having to create symlink. For example: Code:
Alias /documentation/ "/develop/workspace/documentation/" Alias /public/ "/develop/workspace/public/" >> As soon as I get on the server, you get a prompt Because you have a default-to-authenticate policy and you didn't use Satisfy directive. >> and then, no more prompt... Because that's inherit from its parent directory configuration and your browser remembers the credential. It's a feature, not a bug, therefore you don't need to fix it. |
|
#3
|
|||
|
|||
|
Well, sorry for putting -== xxxxxx ==-... won't do it anymore
![]() And for the problem... I fixed it, in about the same way you told me. Thanx for helping me though. Have a nice day freebsd |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > -== Directory listing with Authentification ==- |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|