htaccess: block .git

This commit is contained in:
nemo 2024-09-04 09:49:42 +02:00
parent 0c3e8ec13d
commit a117498cff
2 changed files with 5 additions and 2 deletions

3
.htaccess Normal file
View File

@ -0,0 +1,3 @@
RewriteEngine On
RedirectMatch 404 \.git

View File

@ -3,8 +3,8 @@ version: "3"
services:
web:
container_name: "studio-siteweb"
image: "httpd"
image: "php-server"
ports:
- "6969:80"
volumes:
- ".:/usr/local/apache2/htdocs/"
- ".:/var/www/html/"