Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经使用命令启用了标头a2enmod headers,我想通过 vim 来编辑缓存控制允许的 http no_cache,只是不知道在哪里.htaccess。
a2enmod headers
.htaccess
.htaccess是一个控制文件,可以位于任意文件夹中,以覆盖有关该文件夹及其子文件夹的 apache 默认设置。
在项目的文档根目录中创建该文件并进行编辑。