This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
forked from kellerben/dudle
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
20 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,19 @@ | ||
<FilesMatch "^\.ht.*"> | ||
deny from all | ||
satisfy all | ||
ErrorDocument 403 "Access to these files is forbidden!" | ||
</FilesMatch> | ||
DirectoryIndex index.cgi | ||
AddHandler cgi-script .cgi | ||
|
||
<FilesMatch "^data.yaml$"> | ||
deny from all | ||
satisfy all | ||
ErrorDocument 403 "Access to these files is forbidden!" | ||
</FilesMatch> | ||
RewriteEngine on | ||
RewriteBase / | ||
|
||
RewriteEngine On | ||
RewriteRule \.git.* /data.yaml | ||
|
||
Options +ExecCGI | ||
AddHandler cgi-script .cgi | ||
DirectoryIndex index.cgi | ||
# add trailing slash to subdirectory requests | ||
RewriteRule ^([^./]+)$ $1/ [R=permanent,L] | ||
|
||
|
||
<FilesMatch "^(.*\.css|favicon\.ico|[^./]+)$"> | ||
Satisfy any | ||
Allow from all | ||
</FilesMatch> | ||
|
||
ErrorDocument 500 /error.cgi | ||
ErrorDocument 404 /not_found.cgi | ||
ErrorDocument 401 /authorization_required.cgi | ||
<Files data.yaml> | ||
Deny from all | ||
</Files> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<FilesMatch "^(|index\.cgi)$"> | ||
Satisfy any | ||
Allow from all | ||
</FilesMatch> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters