Re: Apache .htaccess options

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 18 Jan 2004, Jay Daniels wrote:

>
> Would like to require password "only" when access is not from localhost or
> 192.168.1.0/24
>
> Current .htaccess file reads:
> AuthName "Restricted Area"
> AuthType Basic
> AuthUserFile /var/www/secure/.htpasswd
> require valid-user


in apache.. on
<Directory />
AllowOverride AuthConfig
...oher options..
</Directory>

and...
        <Directory /PATH/TO/YOUR/RESTRICTED/DIRECTORY>
        Options IncludesNoExec Indexes MultiViews SymLinksIfOwnerMatch
        Order allow,deny
        Allow from 192.168.1
        Satisfy any
        </Directory>




-- 
Regards,
Res


-- 
Shrike-list mailing list
Shrike-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/shrike-list

[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux