View Single Post
Old 03-04-2005, 02:44 AM  
Weppel
Confirmed User
 
Join Date: Aug 2003
Location: Netherlands
Posts: 2,190
Quote:
Originally Posted by SplitInfinity
Suggestion to all: Dont use .htaccess files.
Instead, use the httpd.conf file.
Reason? Performance impact.
Every file that is served by apache is in a directory tree....
And the server needs to check EVERY DIRECTORY along the file
path for an .htaccess file, just to make sure theres none there
and/or of there IS one there...

So think of it like this....
You have something.gif and someone is loading it right now...
Apache says, oh ok....
Lets see... the file is in /home/one/two/three/four/five
Then it says...
is there and .htaccess file in /home?
is there and .htaccess file in /one?
is there and .htaccess file in /two?
is there and .htaccess file in /three?
is there and .htaccess file in /four?
is there and .htaccess file in /five?

Imagine the disk load and etc if you have like 50 thumbnails on your page?

Food for thought GFY'ers
:-)
How would you for example prevent hotlinking in the httpd.conf file?
Weppel is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote