将项目下的.git目录隐藏
在apache配置文件httpd.conf中添加配置:
<Directory "${INSTALL_DIR}/www/mypro/.git">
Require all denied
</Directory>
【注】:wamp环境下的配置文件中的以下配置已经将入口目录下的所有文件隐藏
<Directory />
AllowOverride none
Require all denied
</Directory>
在apache配置文件httpd.conf中添加配置:
<Directory "${INSTALL_DIR}/www/mypro/.git">
Require all denied
</Directory>
【注】:wamp环境下的配置文件中的以下配置已经将入口目录下的所有文件隐藏
<Directory />
AllowOverride none
Require all denied
</Directory>