Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deny access to Dot sourced files and directories in NGINX #7

Open
blueelvis opened this issue Jan 10, 2018 · 0 comments
Open

Deny access to Dot sourced files and directories in NGINX #7

blueelvis opened this issue Jan 10, 2018 · 0 comments

Comments

@blueelvis
Copy link

blueelvis commented Jan 10, 2018

Right now, NGINX is serving all of the files from .git folder and along with .htaccess . Could you please add the following to NGINX configuration at the top?

location ~ /\. {
  deny all;
  return 403;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant