Skip to content

Instantly share code, notes, and snippets.

View fraschbi's full-sized avatar

Florian Raschbichler fraschbi

View GitHub Profile
@guycalledseven
guycalledseven / nginx_issues.md
Last active March 28, 2022 19:49
bizarre nginx issues caused by incorrect file permissions

issues experienced

nginx error.log shows permission denied

nginx log in /var/log/nginx/error.log shows intereseting Error 13: Permission denied:

2017/11/14 00:33:30 [crit] 5117#5117: *224 open() "/var/lib/nginx/proxy/3/02/0000000023" failed (13: Permission denied) while reading upstream, client: 93.136.115.2, server: git.domain.tld, request: "GET /css/semantic-2.2.10.min.css HTTP/1.1", upstream: "http://127.0.0.1:3000/css/semantic-2.2.10.min.css", host: "git.domain.tld"
@stephenhardy
stephenhardy / git-clearHistory
Created April 26, 2013 22:14
Steps to clear out the history of a git/github repository
-- Remove the history from
rm -rf .git
-- recreate the repos from the current content only
git init
git add .
git commit -m "Initial commit"
-- push to the github remote repos ensuring you overwrite history
git remote add origin git@github.com:<YOUR ACCOUNT>/<YOUR REPOS>.git