.htacces

I know I should know this

but I'm running apache on a windows 2k system and I want to secure directorys with .htacces does anyone know where I can find info on this or does anyone have info on it. I don't know how to configure this file where to place it etc..

Comments

  • Hi!

    OK, this is a limited intro, but you put the .htaccess file in the directory you wish to alter the parameters of - in this case you are configuring access privelliges.

    You use pretty much the same commands in the .htaccess file as you do in the main configuration file (e.g. httpd.conf).

    To deny access to a folder, I believe you could do this:-
    Deny All
    Put that in a .htaccess file, put it in the directory to prevent access to and voila. :)

    Though chances are you are after something more complex that this!

    Hope this helps somewhat!

    Jonathan


    ------------------------------------------
    Count downloads from your site for free!
    http://www.downloadcounter.com/

  • Hence, you should also change something in the Apache directory configuration for the DocumentRoot.

    By default the, AllowOverride-option for the
    DocumentRoot is set to "None".
    Please note that when specifying "None" for this,
    Apache will totally ignore the .htaccess file!:
    => AllowOverride None

    If you want to enable this feature, you should change it to:
    => AllowOverride AuthConfig

    Hopes this answers your question...

    Regards,

    Sander




    : Hi!
    :
    : OK, this is a limited intro, but you put the .htaccess file in the directory you wish to alter the parameters of - in this case you are configuring access privelliges.
    :
    : You use pretty much the same commands in the .htaccess file as you do in the main configuration file (e.g. httpd.conf).
    :
    : To deny access to a folder, I believe you could do this:-
    : Deny All
    : Put that in a .htaccess file, put it in the directory to prevent access to and voila. :)
    :
    : Though chances are you are after something more complex that this!
    :
    : Hope this helps somewhat!
    :
    : Jonathan
    :
    :
    : ------------------------------------------
    : Count downloads from your site for free!
    : http://www.downloadcounter.com/
    :
    :

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories