mirror of
https://github.com/espocrm/espocrm.git
synced 2026-03-03 02:47:03 +00:00
27 lines
736 B
ApacheConf
Executable File
27 lines
736 B
ApacheConf
Executable File
<ifModule mod_headers.c>
|
|
Header always set Access-Control-Allow-Methods "POST, GET, PUT, PATCH, DELETE"
|
|
</ifModule>
|
|
|
|
DirectoryIndex index.php index.html
|
|
|
|
# PROTECTED DIRECTORIES
|
|
<IfModule mod_rewrite.c>
|
|
RewriteEngine On
|
|
RewriteCond %{REQUEST_FILENAME} -d
|
|
RewriteRule (?i)(data|api) - [F]
|
|
</IfModule>
|
|
RedirectMatch 403 (?i)/data/config\.php$
|
|
RedirectMatch 403 (?i)/data/logs
|
|
RedirectMatch 403 (?i)/data/cache
|
|
RedirectMatch 403 (?i)/data/upload
|
|
RedirectMatch 403 (?i)/application
|
|
RedirectMatch 403 (?i)/custom
|
|
RedirectMatch 403 (?i)/vendor
|
|
#END PROTECTED DIRECTORIES
|
|
|
|
<IfModule mod_rewrite.c>
|
|
RewriteEngine On
|
|
RewriteRule .* - [E=HTTP_ESPO_CGI_AUTH:%{HTTP:Authorization}]
|
|
|
|
RewriteRule reset/?$ reset.html [QSA,L]
|
|
</IfModule> |