stop htaccess propagation

Discussion in 'Server Operation' started by mythgard, Dec 10, 2006.

  1. mythgard

    mythgard New Member

    How do I make an htaccess file for auth not propagate to the sub-directories?

    I have a root directory /home/web and I have the defaule server placed there and all the other domains in /home/web/domain.com/, etc. I have htaccess files in those web directories so I can use redirection, etc. How do I do this, I am sure there must be a way?
     
  2. falko

    falko Super Moderator Howtoforge Staff

    You can put something like
    Code:
    <Directory /home/web/domain.com>
        Order allow,deny
        Deny from all
    </Directory>
    into the vhost configuration of your main vhost for each subdirectory.
     

Share This Page