Re: htaccess + apache

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

 



On Sun, 28 May 2006 09:56:33 +0100 Paul Howarth <paul@xxxxxxxxxxxx> wrote:

> On Sat, 2006-05-27 at 22:41 -0400, CodeHeads wrote:
> > Have a quick question. Did not find what i was looking for on google.
> > 
> > Say if my document root for my virtual sites is /var/www/sites
> > 
> > Can I put the following .htaccess file in the document root to restrict
> > access? Order allow,deny
> > allow from all
> > deny from 123.123.133.145
> > 
> > I know that I can use the httpd.conf file, but I am tring to do something a
> > bit faster.
> 
> A bit fast in what way?
> 
> If you set up the access controls in httpd.conf and have "AllowOverride
> None" then the web server doesn't have to check for .htaccess files for
> every single access, and hence will perform faster.

Sorry Paul, I should have been more precise in explaining this :). I have some
restricted directories already that use htaccess. So yes it is set to look for
the htaccess file.

> Or do you mean faster to set up, so you don't have to reload the server
> config?

Yes, you are right. Instead of using the httpd.conf file, and entering the ip's
then restarting apache. I would rather have one file in the doc root that I can
change. I think I explained that right. :)

Will

Attachment: signature.asc
Description: PGP signature

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux