Tags:
create new tag
, view all tags

Question

I have set this up successfully on Unix, but for some reason, htaccess does nothing on my machine. I get the feeling I am missing something obvious.

Problem is that I cannot turn on htaccess.

First of all, Windows seems to choke on files named .* so it groans when I try to rename the htaccess file...so I do it from a command prompt and the file "disappears"...though I can get it back by renaming it again in the blind.

So I try to set the file name in apache's conf file to _htaccess instead and rename the file that.

Still nothing. My server seems not to notice the file. I have tried protecting non-twiki stuff and still doesn't work.

Sorry for the non-twiki question. Just don't know where else to look. .

  • TWiki version: sept1
  • Web server: apache
  • Server OS: win2000
  • Web browser: ie5.5
  • Client OS: win2000

-- ChristianHall - 29 Sep 2001

Answer

Found the answer. First, you have to rename your htaccess files to something else and tweak the AccessFileName directive and file permissions that follow. E.g. I use _htaccess for my files.

Also, read the docs carefully! I actually figured this out elsewhere and then noticed this line in the docs: Add "AllowOverride All" to the Directory section of access.conf. Htaccess will do nothing if in directory that has AllowOverride None.

Good docs for all this stuff exist at http://apache-server.com/tutorials/ATusing-htaccess.html

.

What if no access.conf?!

I am using IIS, not Apache, and cannot get the htaccess to work. Don't think there is an access.conf for IIS. What then?!

Also, do I change my .htaccess to _htaccess and leave it that way?

Many thanks,

-- DavidHay - 20 Nov 2001

IIS does not use .htaccess files, you configure access by:

  1. going into InternetServicesManager
  2. right-clicking the bin directory,
  3. selecting properties
  4. selecting DirectorySecurity
  5. Edit
  6. Untick AnonymousAuthentication
  7. Tick BasicAuthentication

-- MartinCleaver - 22 Nov 2001

Thanks, Martin. I have just got that far, but, as posted on fresh Support question (AuthenticationWithIIS), I am restricted to NOT being able to create accounts on the NT server to be able to use Basic Authentication. I want to use the accounts automatically added to .htpasswd. Is this possible? Also, what should $doRememberRemoteUser value be?

Any ideas?

Dave

-- DavidHay - 30 Nov 2001

Topic revision: r7 - 2002-01-29 - TWikiAdmin
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.