使用Apache中.htaccess文件 [英] Using .htaccess file in Apache

查看:107
本文介绍了使用Apache中.htaccess文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有是一个使用的.htaccess与在网络aplication在所有主目录中的拒绝所有的指令任何性能问题? TKS。

There is any performance issue using .htaccess with the 'deny from all' instruction in all main directories in an web aplication? Tks.

推荐答案

使用的.htaccess 文件减慢的Apache。如果可以,修改主服务器的配置文件(通常称为的httpd.conf

Using .htaccess files slows down Apache. If you can, modify the main server config file (usually called httpd.conf)

这本手册:

您应该避免使用完全.htaccess文件,如果你有机会到主的httpd服务器配置文件。使用.htaccess文件会减慢你的Apache HTTP服务器。任何指令,您可以在.htaccess文件在目录块最好设定,因为这将有更好的表现同样的效果。

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.

这篇关于使用Apache中.htaccess文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆