|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
|||
|
|||
|
require + .htaccess
Hi!!
Ive got some problems with apache. I'm using apache 2.0.47. This is what I've got in .htaccess: AuthType Basic AuthName "Password Required" AuthUserFile /etc/htpasswd Require user dummy <Directory "/home/Admin/Homepages/dummy"> AllowOverride AuthConfig All Options +Indexes FollowSymLinks </Directory> When it is like this the server won't show the folder dummy in the index of the server-root. When I comment out the "require ..." paragraph the folder is shown. It won't display any password-window though... Thanks!! |
|
#2
|
|||
|
|||
|
RE: require + .htaccess
---Moved By Postal Cow---
|
|
#3
|
|||
|
|||
|
RE: require + .htaccess
Quote:
Create you own user file do a htpasswd -c .pass_file_name username then point it to the created file. All you really need is the basics like I have below Code:
AuthUserFile /var/www/html/.htpasswd AuthName www.postalcow_rocks.com AuthType Basic <Limit GET> require valid-user </Limit> |
|
#4
|
|||
|
|||
|
RE: require + .htaccess
I've done what you said, but it still won't show any password-box... Could I be missing a module for the password-box or could the track to the password-box be wrong somewhere? It is reading my .htaccess-file, and my track to the .htpasswd is like this:/etc/.htpasswd.
Thanks! |
|
#5
|
|||
|
|||
|
RE: require + .htaccess
Are you pointing it to your new .passwd file you created?
Like AuthUserFile /var/www/html/.htpasswd Or did your actually create the new passwd file under ect? |
|
#6
|
|||
|
|||
|
RE: require + .htaccess
Yes I did! This is how my .htaccess now looks:
AuthUserFile /etc/.htpasswd AuthName "Password Required" AuthType Basic <Limit GET> require user torstein </Limit> What is it that actually makes the password-box pop up? Thanks!! |
|
#7
|
|||
|
|||
|
RE: require + .htaccess
That basic config should work. Maybe overrides are not set up in your httpd.conf file, so try adding this to it
<Directory "/var/www/somewhere"> AllowOverride All </Directory> |
|
#8
|
|||
|
|||
|
RE: require + .htaccess
I've done that too! I can't figure out what's wrong...
This is my configs: <Directory "/home/Admin/Webpages/dummy"> AllowOverride All Options +Indexes FollowSymLinks </Directory> DocumentRoot "/home/Admin/Webpages" <Directory "/home/Admin/Webpages"> # # Possible values for the Options directive are "None", "All", # or any combination of: # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you. # # The Options directive is both complicated and important. Please see # http://httpd.apache.org/docs-2.0/mod/core.html#options # for more information. # Options Indexes FollowSymLinks # # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # Options FileInfo AuthConfig Limit # AllowOverride None # # Controls who can get stuff from this server. # Order allow,deny Allow from all </Directory> |
|
#9
|
|||
|
|||
|
RE: require + .htaccess
Umm, It should work, I am hoping someone else jumps in with an idea.
|
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Server Administration > require + .htaccess |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|