21 wiersze
528 B
ApacheConf
21 wiersze
528 B
ApacheConf
Options -Indexes
|
|
|
|
<IfModule mod_rewrite.c>
|
|
RewriteEngine On
|
|
RewriteBase /
|
|
|
|
# Redirect all paths to queries
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
RewriteRule ^(.*)$ index.php?path=$1 [QSA,L]
|
|
</IfModule>
|
|
|
|
# Serve JSON documents with the correct MIME types
|
|
AddType application/activity+json .json
|
|
|
|
# Deny access to env file because it contains secrets
|
|
# See https://httpd.apache.org/docs/2.4/en/mod/mod_authz_core.html#reqall
|
|
<Files .env>
|
|
Require all denied
|
|
</Files>
|