Created
July 13, 2016 18:02
-
-
Save dfelton/e5fe7fdf380da16fd1198c151910e378 to your computer and use it in GitHub Desktop.
nginx configurations for Magento store.
This file contains hidden or 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
| ############################################ | |
| ## Disallow PHP scripts in /media/ and /js/ | |
| location ^~ /media/ { | |
| location ~ \.php$ { | |
| return 403; | |
| } | |
| try_files $uri $uri/ =404; | |
| expires 30d; | |
| } | |
| location ^~ /js/ { | |
| location ~ \.php$ { | |
| return 403; | |
| } | |
| try_files $uri $uri/ =404; | |
| expires 30d; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment