Skip to content

Instantly share code, notes, and snippets.

@Altreus
Last active August 29, 2015 14:01
Show Gist options
  • Save Altreus/7e3797fd4add2e2e60ab to your computer and use it in GitHub Desktop.
Save Altreus/7e3797fd4add2e2e60ab to your computer and use it in GitHub Desktop.
$ PATH_INFO="/altre.us.git/HEAD" GIT_PROJECT_ROOT=/opt/git REQUEST_METHOD=GET /usr/lib/git-core/git-http-backend
Expires: Fri, 01 Jan 1980 00:00:00 GMT
Pragma: no-cache
Cache-Control: no-cache, max-age=0, must-revalidate
Content-Length: 23
Content-Type: text/plain
Last-Modified: Thu, 22 May 2014 12:23:33 +0000
ref: refs/heads/master
$ PATH_INFO="/altre.us.git" GIT_PROJECT_ROOT=/opt/git REQUEST_METHOD=GET /usr/lib/git-core/git-http-backend
Status: 404 Not Found
Expires: Fri, 01 Jan 1980 00:00:00 GMT
Pragma: no-cache
Cache-Control: no-cache, max-age=0, must-revalidate
Request not supported: '/opt/git/altre.us.git'
server {
listen 80;
server_name git.altre.us;
root /opt/git;
access_log /var/log/nginx/git.altre.us/access.log;
error_log /var/log/nginx/git.altre.us/error.log;
location / {
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME /usr/lib/git-core/git-http-backend;
fastcgi_param GIT_HTTP_EXPORT_ALL true;
fastcgi_param GIT_PROJECT_ROOT /opt/git;
fastcgi_param PATH_INFO $uri;
fastcgi_param REMOTE_USER $remote_user;
fastcgi_pass unix:/var/run/fcgiwrap.socket;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment