beber pushed a commit to branch master.

commit f41eee7ea879da868747ea00f181864fe52dc02b
Author: Bertrand Jacquin <[email protected]>
Date:   Sat Aug 17 15:45:49 2013 +0200

    Move public content to public_html
---
 .gitignore                                               |   6 +++---
 cgitrc                                                   |   2 +-
 .htaccess => public_html/.htaccess                       |   6 +-----
 {filters => public_html/filters}/about-filter            |   0
 {filters => public_html/filters}/highlight               |   0
 {filters => public_html/filters}/source-filter           |   0
 {filters => public_html/filters}/templates/rst2html.tmpl |   0
 logo.png => public_html/logo.png                         | Bin
 repos.txt => public_html/repos.txt                       |   0
 9 files changed, 5 insertions(+), 9 deletions(-)

diff --git a/.gitignore b/.gitignore
index b4bb394..27ceec2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,8 +2,8 @@
 cache
 
 # Shipped from www-apps/cgit
-cgit.cgi
-cgit.css
+public_html/cgit.cgi
+public_html/cgit.css
 
 # Shipped from dev-vcs/git
-git-http-backend.cgi
+public_html/git-http-backend.cgi
diff --git a/cgitrc b/cgitrc
index 5be175d..37202d8 100644
--- a/cgitrc
+++ b/cgitrc
@@ -41,7 +41,7 @@ readme=master:doc/index.rst
 
 mimetype-file=/etc/mime.types
 
-cache-root=./cache
+cache-root=../cache
 cache-size=10000
 cache-dynamic-ttl=1
 cache-repo-ttl=1
diff --git a/.htaccess b/public_html/.htaccess
similarity index 92%
rename from .htaccess
rename to public_html/.htaccess
index b44ada4..ddbe88e 100644
--- a/.htaccess
+++ b/public_html/.htaccess
@@ -8,7 +8,7 @@ AddHandler cgi-script .cgi
 DirectoryIndex cgit.cgi
 
 # Config is locally hosted, not depending on root filesystem
-SetEnv CGIT_CONFIG ./cgitrc
+SetEnv CGIT_CONFIG ../cgitrc
 
 # git-html-backend config
 # GIT_HTTP_EXPORT_ALL is not defined, gitolite create git-daemon-export-ok
@@ -41,10 +41,6 @@ RewriteCond %{REQUEST_URI} 
^(.*)\.git/pack/pack-[0-9a-f]{40}\.(pack|idx)$ [OR]
 RewriteCond %{REQUEST_URI} ^(.*)\.git/git-upload-pack$
 RewriteRule (.*) /git-http-backend.cgi/$1 [L,QSA]
 
-# Refuse to serve to users the config file
-RewriteCond %{REQUEST_URI} ^/cgitrc$
-RewriteRule (.*) - [F,L]
-
 # Serve local file
 RewriteCond %{REQUEST_FILENAME} -f
 RewriteRule .* - [L]
diff --git a/filters/about-filter b/public_html/filters/about-filter
similarity index 100%
rename from filters/about-filter
rename to public_html/filters/about-filter
diff --git a/filters/highlight b/public_html/filters/highlight
similarity index 100%
rename from filters/highlight
rename to public_html/filters/highlight
diff --git a/filters/source-filter b/public_html/filters/source-filter
similarity index 100%
rename from filters/source-filter
rename to public_html/filters/source-filter
diff --git a/filters/templates/rst2html.tmpl 
b/public_html/filters/templates/rst2html.tmpl
similarity index 100%
rename from filters/templates/rst2html.tmpl
rename to public_html/filters/templates/rst2html.tmpl
diff --git a/logo.png b/public_html/logo.png
similarity index 100%
rename from logo.png
rename to public_html/logo.png
diff --git a/repos.txt b/public_html/repos.txt
similarity index 100%
rename from repos.txt
rename to public_html/repos.txt

-- 

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk

Reply via email to