How do I hide directories in Apache, specifically source-control?

前端 未结 7 1094
终归单人心
终归单人心 2020-12-02 13:40

I want to keep my website/s in version control (Subversion specifically) and use svn co to update it when there are stable versions to update, but I\'m concerne

7条回答
  •  孤街浪徒
    2020-12-02 14:08

    I use the following which returns a simple 404 to the user, not revealing that the source control directory actually exists:

    RedirectMatch 404 /\.(svn|git)(/|$)

提交回复
热议问题