|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
apache htaccess on windows help
OK.. well
I'm setting up apache and mysql and php on this windows box i got here (yes I know) and basically it seems that .htaccess is still supposed to work on the windows box, or atleast that is what apache is telling me... buttt of course it isn't.. i've made htaccess files on unix o course.. so im not f*ing anything up.. anyone run across this? |
|
#2
|
|||
|
|||
|
no help eh? hrmm....
I don't want people to have access to my admin tools I will be building for myself.. and basic auth is the easiest way to do it... i could go ahead and do my own login/cookie thing.. but.. why re-invent the wheel if basic auth is already there.. i just don't know why it won't work... suggestions? clues? |
|
#3
|
||||
|
||||
|
bo0:
I have a question.. in your httpd.conf do you have this for your main directory tag? Code:
<Directory "c:\directorytothewwwpages\">
Options Indexes FollowSymLinks MultiViews
AllowOverride FileInfo ALL
Order allow,deny
Allow from all
</Directory>
Or something like it? I believe that should give you the ability to use the .htaccess file.. if not, let me know what you're trying to do and I'll see what I can dig up for you |
|
#4
|
|||
|
|||
|
<Directory "G:/Apache/Apache2/htdocs">
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory> i know that the index line is commented out.. but i don't think that is affecting htaccess and i have htaccess setup u can see here: AccessFileName .htaccess here is another line that refers to htaccess.. im not sure if those allow/deny rules are set up correctly.. those are default: # The following lines prevent .htaccess and .htpasswd files from being # viewed by Web clients. # <Files ~ "^\.ht"> Order allow,deny Deny from all </Files> get back to me with anything, thanks for your help |
|
#5
|
||||
|
||||
|
Quote:
those last rules are correct.. the Quote:
what exactly are you trying to do with the htaccess? |
|
#6
|
|||
|
|||
|
im just trying to setup normal Basic-Auth on a folder..
the prompt box comes up with the user name and password when u try to get to a certain folder in my directory tree.. just like it's normal use in *nix. I've done it before on *nix, so.. and the apache docs told me to do it the same way.. so I did... but not working.. :/ |
|
#7
|
||||
|
||||
|
Quote:
Found out the problem.. above you have Quote:
Change your AllowOverride from Code:
AllowOverride None Code:
AllowOverride AuthConfig That should fix it ![]() |
|
#8
|
|||
|
|||
|
thanks so much for your help..
|
|
#9
|
||||
|
||||
|
I take it that worked?
|
|
#10
|
|||
|
|||
|
Hi,
I'm sorry for re-activating this old Topic, but I have the same problem. After making the changes in my httpd.conf-file like I got the prompt box with username and password. But now I don't know how to set-up the path to the password-file in my .htaccess-file. I've tried absolut and relative paths, but nothing works. Can anyone help?? Thanks! |
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Web Server Configuration > apache htaccess on windows help |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|