Run prettier on all *.md files
``` prettier '{app,source}/**/**.md' --write ```
This commit is contained in:
parent
a3ceeaf0f3
commit
85a10c545b
170 changed files with 5127 additions and 2282 deletions
|
@ -1,15 +1,23 @@
|
|||
---
|
||||
title: Prevent Apache from displaying text files within a web browser
|
||||
date: 2012-05-23
|
||||
excerpt: How to prevent Apache from displaying the contents of files like CHANGELOG.txt.
|
||||
excerpt:
|
||||
How to prevent Apache from displaying the contents of files like
|
||||
CHANGELOG.txt.
|
||||
tags:
|
||||
- apache
|
||||
- code
|
||||
- drupal
|
||||
---
|
||||
When you download [Drupal](http://drupal.org/project/drupal), there are several text files that are placed in the root of your installation. You don't want or need these to be visible to anyone attempting to view them in a browser - especially CHANGELOG.txt as that includes the exact version of Drupal you are running and could therefore have security implications.
|
||||
|
||||
Rather than delete these files or change the file permissions manually for each file, I can add the following lines into my VirtualHost configuration.
|
||||
When you download [Drupal](http://drupal.org/project/drupal), there are several
|
||||
text files that are placed in the root of your installation. You don't want or
|
||||
need these to be visible to anyone attempting to view them in a browser -
|
||||
especially CHANGELOG.txt as that includes the exact version of Drupal you are
|
||||
running and could therefore have security implications.
|
||||
|
||||
Rather than delete these files or change the file permissions manually for each
|
||||
file, I can add the following lines into my VirtualHost configuration.
|
||||
|
||||
```language-apacheconf
|
||||
<Files ~ "\.txt$">
|
||||
|
@ -18,4 +26,5 @@ Rather than delete these files or change the file permissions manually for each
|
|||
</Files>
|
||||
```
|
||||
|
||||
This prevents any files with a .txt extension from being accessed and rendered in a web browser.
|
||||
This prevents any files with a .txt extension from being accessed and rendered
|
||||
in a web browser.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue