Don't allow Apache to serve git files
This commit is contained in:
parent
d8f3a7839c
commit
3a2da3df98
@ -1,5 +1,7 @@
|
|||||||
Options -Indexes
|
Options -Indexes
|
||||||
|
|
||||||
|
RedirectMatch 404 /\.git
|
||||||
|
|
||||||
# ---
|
# ---
|
||||||
# Uncomment these lines to change PHP parameters if you are using the PHP Apache module
|
# Uncomment these lines to change PHP parameters if you are using the PHP Apache module
|
||||||
# ---
|
# ---
|
||||||
@ -16,4 +18,4 @@ Options -Indexes
|
|||||||
# ---
|
# ---
|
||||||
#Header add Access-Control-Allow-Origin "*"
|
#Header add Access-Control-Allow-Origin "*"
|
||||||
#Header add Access-Control-Allow-Headers "origin, x-requested-with, content-type"
|
#Header add Access-Control-Allow-Headers "origin, x-requested-with, content-type"
|
||||||
#Header add Access-Control-Allow-Methods "PUT, GET, POST, DELETE, OPTIONS"
|
#Header add Access-Control-Allow-Methods "PUT, GET, POST, DELETE, OPTIONS"
|
||||||
|
Loading…
Reference in New Issue
Block a user