Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion apps/drupal/drupal.conf
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,11 @@ location / {
## .htaccess. Disable access to any code files. Return a 404 to curtail
## information disclosure. Hide also the text files.
location ~* ^(?:.+\.(?:htaccess|make|txt|engine|inc|info|install|module|profile|po|pot|sh|.*sql|test|theme|tpl(?:\.php)?|xtmpl)|code-style\.pl|/Entries.*|/Repository|/Root|/Tag|/Template)$ {
return 404;
if (-e $request_filename) {
return 404;
}
error_page 418 = @drupal;
return 418;
}

## First we try the URI and relay to the /index.php?q=$uri&$args if not found.
Expand Down