Where is .htaccess located in ubuntu apache2?

懵懂的女人 提交于 2019-12-12 01:26:01

问题


I've already enable headers using command a2enmod headers,i want to vim it to edit cache-control allowed http no_cache, just don't know where is .htaccess located.


回答1:


.htaccess is a control file which can be located in arbitrary folder in order to overwrite apache default settings regarding that folder and its subfolders.

Create that file inside the document root of your project and edit it.



来源:https://stackoverflow.com/questions/19398182/where-is-htaccess-located-in-ubuntu-apache2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!