Thread (4 messages) flat view 4 messages, 4 authors, 2016-06-15

Re: Managing websites with git

From: Todd A. Jacobs <hidden>
Date: 2016-06-15 22:45:51

On Sun, Nov 30, 2008 at 05:30:30PM +0100, Felix Andersen wrote:
I was thinking about any security issues with the .git dir being
hosted. Or is that even the right way to do it?
With Apache, you can add the following to your httpd.conf file, or to an
.htaccess file within your document root:

    <DirectoryMatch "^\.git">
	Order allow,deny
	Deny from all
    </DirectoryMatch>
    <FilesMatch "^\.gitignore">
	Order allow,deny
	Deny from all
    </FilesMatch>

to prevent web access to the respository.

-- 
"Oh, look: rocks!"
	-- Doctor Who, "Destiny of the Daleks"
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help