2017-12-17 15:10:49 +08:00
|
|
|
# Disable index view
|
|
|
|
Options -Indexes
|
|
|
|
|
2017-12-24 00:15:18 +08:00
|
|
|
RewriteEngine On
|
2017-12-17 15:10:49 +08:00
|
|
|
|
2017-12-31 03:39:56 +08:00
|
|
|
# Handle Authorization Header
|
2019-10-24 00:01:31 +08:00
|
|
|
RewriteCond %{HTTP:Authorization} .
|
|
|
|
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
|
2017-12-31 03:39:56 +08:00
|
|
|
|
2017-12-24 00:28:56 +08:00
|
|
|
# Deny all these files/folders
|
|
|
|
RedirectMatch 403 ^/.git/.*?$
|
|
|
|
RedirectMatch 403 ^/.travis/.*?$
|
|
|
|
RedirectMatch 403 ^/app/.*?$
|
|
|
|
RedirectMatch 403 ^/bootstrap/.*?$
|
|
|
|
RedirectMatch 403 ^/config/.*?$
|
|
|
|
RedirectMatch 403 ^/modules/.*?$
|
|
|
|
RedirectMatch 403 ^/node_modules/.*?$
|
|
|
|
RedirectMatch 403 ^/resources/.*?$
|
|
|
|
RedirectMatch 403 ^/storage/.*?$
|
|
|
|
RedirectMatch 403 ^/tests/.*?$
|
|
|
|
RedirectMatch 403 ^/vendor/.*?$
|
|
|
|
RedirectMatch 403 ^/.bowerrc$
|
2019-09-17 01:08:26 +08:00
|
|
|
RedirectMatch 403 ^/.env
|
2017-12-24 00:28:56 +08:00
|
|
|
RedirectMatch 403 ^/artisan$
|
|
|
|
RedirectMatch 403 ^/composer.json
|
|
|
|
RedirectMatch 403 ^/composer.lock
|
|
|
|
RedirectMatch 403 ^/composer.phar
|
|
|
|
RedirectMatch 403 ^/env.php.*?$
|
2018-01-09 21:09:16 +08:00
|
|
|
RedirectMatch 403 ^/env.php
|
|
|
|
RedirectMatch 403 ^/env.php$
|
2017-12-24 00:28:56 +08:00
|
|
|
RedirectMatch 403 ^/Makefile
|
|
|
|
RedirectMatch 403 ^/package.json
|
|
|
|
RedirectMatch 403 ^/package-lock.json
|
|
|
|
RedirectMatch 403 ^/phpunit.xml
|
|
|
|
RedirectMatch 403 ^/webpack.mix.js
|
2019-09-17 01:08:26 +08:00
|
|
|
RedirectMatch 403 ^/yarn.lock
|
2017-12-24 00:28:56 +08:00
|
|
|
|
2019-10-24 00:01:31 +08:00
|
|
|
RewriteRule ^(.*)$ public/$1 [L]
|