From: "Todd A. Jacobs" <nospam@codegnome.org>
To: git@vger.kernel.org
Subject: Re: Managing websites with git
Date: Sat, 3 Jan 2009 13:29:08 -0800 [thread overview]
Message-ID: <20090103212908.GG6136@penguin.codegnome.org> (raw)
In-Reply-To: <fe5a74300811300830x850d81csc5cf1f9b367bac11@mail.gmail.com>
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"
prev parent reply other threads:[~2009-01-03 21:56 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-30 16:30 Managing websites with git Felix Andersen
2008-11-30 17:07 ` David Bryson
2008-11-30 17:27 ` Jeff King
2008-12-02 0:46 ` Jason Riedy
2008-12-02 1:11 ` Jeff King
2008-12-02 15:55 ` Jason Riedy
2008-12-02 16:55 ` Jeff King
2008-12-02 19:07 ` Junio C Hamano
2008-12-02 1:36 ` Leo Razoumov
2009-01-03 21:29 ` Todd A. Jacobs [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090103212908.GG6136@penguin.codegnome.org \
--to=nospam@codegnome.org \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).