Options -Indexes -ExecCGI -FollowSymLinks
<IfModule mod_autoindex.c>
    IndexIgnore *
</IfModule>

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /data/

    RewriteCond %{REQUEST_METHOD} ^(GET|HEAD) [NC]
    RewriteRule \.php$ - [F,L]
</IfModule>

<FilesMatch "^(.*\.log|error_log|\.env|config\.json|composer\.json|\.htaccess)$">
    <IfModule mod_authz_core.c>
        Require all denied
    </IfModule>
    <IfModule !mod_authz_core.c>
        Order Allow,Deny
        Deny from all
    </IfModule>
</FilesMatch>

<IfModule mod_php7.c>
    php_value open_basedir "/home/jahanhos/botcloud.jahanhost.site/data/:/tmp/"
    php_flag display_errors off
    php_flag log_errors on
    php_value error_log ./bot_errors.log
</IfModule>
<IfModule mod_php8.c>
    php_value open_basedir "/home/jahanhos/botcloud.jahanhost.site/data/:/tmp/"
    php_flag display_errors off
    php_flag log_errors on
    php_value error_log ./bot_errors.log
</IfModule>
