mirror of
https://github.com/flarum/flarum.git
synced 2025-06-25 00:00:12 -04:00
Compare commits
No commits in common. "master" and "v1.8.0" have entirely different histories.
@ -5,12 +5,10 @@ location / {
|
|||||||
|
|
||||||
# Uncomment the following lines if you are not using a `public` directory
|
# Uncomment the following lines if you are not using a `public` directory
|
||||||
# to prevent sensitive resources from being exposed.
|
# to prevent sensitive resources from being exposed.
|
||||||
# <!-- BEGIN EXPOSED RESOURCES PROTECTION -->
|
|
||||||
# location ~* ^/(\.git|composer\.(json|lock)|auth\.json|config\.php|flarum|storage|vendor) {
|
# location ~* ^/(\.git|composer\.(json|lock)|auth\.json|config\.php|flarum|storage|vendor) {
|
||||||
# deny all;
|
# deny all;
|
||||||
# return 404;
|
# return 404;
|
||||||
# }
|
# }
|
||||||
# <!-- END EXPOSED RESOURCES PROTECTION -->
|
|
||||||
|
|
||||||
# The following directives are based on best practices from H5BP Nginx Server Configs
|
# The following directives are based on best practices from H5BP Nginx Server Configs
|
||||||
# https://github.com/h5bp/server-configs-nginx
|
# https://github.com/h5bp/server-configs-nginx
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<p align="center">
|
<p align="center">
|
||||||
<a href="https://flarum.org/"><img src="https://flarum.org/images/flarum.svg"></a>
|
<a href="https://flarum.org/"><img src="https://flarum.org/assets/img/logo.png"></a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
|
|
||||||
# Uncomment the following lines if you are not using a `public` directory
|
# Uncomment the following lines if you are not using a `public` directory
|
||||||
# to prevent sensitive resources from being exposed.
|
# to prevent sensitive resources from being exposed.
|
||||||
# <!-- BEGIN EXPOSED RESOURCES PROTECTION -->
|
|
||||||
# RewriteRule /\.git / [F,L]
|
# RewriteRule /\.git / [F,L]
|
||||||
# RewriteRule ^auth\.json$ / [F,L]
|
# RewriteRule ^auth\.json$ / [F,L]
|
||||||
# RewriteRule ^composer\.(lock|json)$ / [F,L]
|
# RewriteRule ^composer\.(lock|json)$ / [F,L]
|
||||||
@ -14,7 +13,6 @@
|
|||||||
# RewriteRule ^flarum$ / [F,L]
|
# RewriteRule ^flarum$ / [F,L]
|
||||||
# RewriteRule ^storage/(.*)?$ / [F,L]
|
# RewriteRule ^storage/(.*)?$ / [F,L]
|
||||||
# RewriteRule ^vendor/(.*)?$ / [F,L]
|
# RewriteRule ^vendor/(.*)?$ / [F,L]
|
||||||
# <!-- END EXPOSED RESOURCES PROTECTION -->
|
|
||||||
|
|
||||||
# Pass requests that don't refer directly to files in the filesystem to index.php
|
# Pass requests that don't refer directly to files in the filesystem to index.php
|
||||||
RewriteCond %{REQUEST_FILENAME} !-f
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
|
Loading…
x
Reference in New Issue
Block a user