There is any performance issue using .htaccess with the 'deny from all' instruction in all main directories in an web aplication? Tks.
Open a global Apache configuration ( /etc/apache2/apache2. conf ) or site-specific configuration ( /etc/apache2/sites-available/mywebsite. conf ) with a text editor. Look for <Directory></Directory> directives.
Using .htaccess
files slows down Apache. If you can, modify the main server config file (usually called httpd.conf
)
From the manual:
You should avoid using .htaccess files completely if you have access to httpd main server config file. Using .htaccess files slows down your Apache http server. Any directive that you can include in a .htaccess file is better set in a Directory block, as it will have the same effect with better performance.
http://httpd.apache.org/docs/current/howto/htaccess.html.
On the other hand if you want to discuss or argue the performance loss versus the loss of ease of maintenance see this post by Simon Greenhill and his benchmarking results.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With