# If you have problem with session.auto_start or session.use_trans_sid on install # you need to set thse configurations values to 0 in php.ini or uncomment this line # php_value session.auto_start 0 # php_value session.use_trans_sid 0 # The following lines enable the apache rewriting for the api. You can use url like http://glpi/api/. RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule api/(.*)$ apirest.php/$1 # You can uncomment following lines to enable caching of web assets (pictures, javascript files, etc) ExpiresActive On ExpiresByType image/jpg "access 1 year" ExpiresByType image/jpeg "access 1 year" ExpiresByType image/gif "access 1 year" ExpiresByType image/png "access 1 year" ExpiresByType text/css "access 1 year" ExpiresByType text/x-javascript "access 1 month" ExpiresByType text/javascript "access 1 month" ExpiresByType application/javascript "access 1 month" AddOutputFilterByType DEFLATE text/plain text/html AddOutputFilterByType DEFLATE text/xml application/xml application/xhtml+xml application/xml-dtd AddOutputFilterByType DEFLATE application/rdf+xml application/rss+xml application/atom+xml image/svg+xml AddOutputFilterByType DEFLATE text/css text/javascript application/javascript application/x-javascript AddOutputFilterByType DEFLATE font/otf font/opentype application/font-otf application/x-font-otf AddOutputFilterByType DEFLATE font/ttf font/truetype application/font-ttf application/x-font-ttf # Serve brotli compressed CSS and JS files if they exist # and the client accepts brotli. RewriteCond "%{HTTP:Accept-encoding}" "br" RewriteCond "%{REQUEST_FILENAME}\.br" "-s" RewriteRule "^(.*)\.(js|css)" "$1\.$2\.br" [QSA] # Serve correct content types, and prevent double compression. RewriteRule "\.css\.br$" "-" [T=text/css,E=no-brotli:1] RewriteRule "\.js\.br$" "-" [T=text/javascript,E=no-brotli:1] # Serve correct encoding type. Header append Content-Encoding br # Force proxies to cache brotli & # non-brotli css/js files separately. Header append Vary Accept-Encoding # ------------------------------------------------------- # Free IP2Location Firewall List by Country # Source: https://www.ip2location.com/free/visitor-blocker # Last Generated: 17 Nov 2021 12:40:02 GMT # [Important] Please update this list every month # ------------------------------------------------------- order allow,deny allow from all deny from 144.91.68.184 deny from 35.216.166.72 deny from 103.92.27.198 deny from 68.183.65.255 deny from 180.137.132.91 deny from 47.243.78.78 deny from 45.195.9.237 deny from 101.34.69.208 deny from 54.254.196.21 deny from 180.211.99.217 deny from 208.109.11.58 deny from 164.92.143.142 deny from 172.104.249.21 deny from 199.201.110.210 deny from 170.64.156.13 deny from 35.216.201.154 deny from 104.165.127.125 deny from 45.39.72.220 deny from 91.205.175.8 deny from 173.249.11.93 # php -- BEGIN cPanel-generated handler, do not edit # Set the “ea-php74” package as the default “PHP” programming language. AddHandler application/x-httpd-ea-php74 .php .php7 .phtml # php -- END cPanel-generated handler, do not edit