# charset Set utf-8 AddDefaultCharset utf-8 AddCharset utf-8 .html .htm .css .php .txt .js # always_populate_raw_post_data for PHP 5 # # php_value always_populate_raw_post_data -1 # # include php_value allow_url_fopen On php_value allow_url_include On # Datetime Zone php_value date.timezone "Europe/Istanbul" # error reporting # disable display of startup errors #php_flag display_startup_error On # disable display of all other errors #php_flag display_errors On # disable html markup of errors #php_flag html_errors On # enable logging of errors # php_flag log_errors On # disable ignoring of repeat errors # php_flag ignore_repeated_errors Off # disable ignoring of unique source errors #php_flag ignore_repeated_source Off # enable logging of php memory leaks php_flag report_memleaks On # preserve most recent error via php_errormsg php_flag track_errors On # disable formatting of error reference links #php_value docref_root 0 # disable formatting of error reference links #php_value docref_ext 0 # specify path to php error log #php_value error_log C:\signage\logs\php.log # specify recording of all php errors # php_value error_reporting -1 or 30719 # php_value error_reporting 30719 # disable max error string length php_value log_errors_max_len 0 # session time php_value session.cookie_lifetime 65535 php_value session.gc_maxlifetime 65535 # charset php_value default_charset "utf-8" php_value input_encoding "utf-8" php_value internal_encoding "utf-8" php_value output_encoding "utf-8" # memory_limit > post_max_size > upload_max_filesize php_value memory_limit 4G php_value post_max_size 3G php_value upload_max_filesize 2G # timeouts php_value default_socket_timeout 300 php_value max_execution_time 180 php_value max_file_uploads 50 # Apache 2 Zip AddOutputFilterByType DEFLATE compressed AddOutputFilterByType DEFLATE application/x-httpd-php text/css text/javascript application/javascript application/x-javascript image/gif image/png image/jpg image/jpeg image/ico image/svg+xml application/font-woff application/octet-stream application/vnd.ms-fontobject application/x-font-opentype application/x-font-ttf application/x-font-woff application/x-woff font/opentype font/otf font/truetype font/ttf application/json text/html application/xhtml+xml application/xml BrowserMatch ^Mozilla/4 gzip-only-text/html BrowserMatch ^Mozilla/4\.0[678] no-gzip BrowserMatch \bMSIE !no-gzip !gzip-only-text/html ExpiresActive On ExpiresDefault "access plus 5 seconds" ExpiresByType ^text/.* "access plus 2592000 seconds" ExpiresByType ^image/.* "access plus 2592000 seconds" ExpiresByType ^font/.* "access plus 2592000 seconds" ExpiresByType application/javascript "access plus 2592000 seconds" ExpiresByType application/x-javascript "access plus 2592000 seconds" ExpiresByType application/font-woff "access plus 2592000 seconds" ExpiresByType application/octet-stream "access plus 2592000 seconds" ExpiresByType application/vnd.ms-fontobject "access plus 2592000 seconds" ExpiresByType application/x-font-opentype "access plus 2592000 seconds" ExpiresByType application/x-font-ttf "access plus 2592000 seconds" ExpiresByType application/x-font-woff "access plus 2592000 seconds" ExpiresByType application/x-woff "access plus 2592000 seconds" ExpiresByType application/json "access plus 600 seconds" #ExpiresByType application/xhtml+xml "access plus 600 seconds" #ExpiresByType application/xml "access plus 600 seconds" ##ExpiresByType */* "access plus 600 seconds" Header set Access-Control-Allow-Origin "*" Header append Vary User-Agent Header set Cache-Control "max-age=2592000, public" Header set Expires "max-age=2592000, public" Header unset ETag Header set Connection keep-alive #Header set Cache-Control "private, must-revalidate" AddType image/svg+xml .svg AddType application/vnd.ms-fontobject .eot AddType font/opentype .otf AddType font/otf .otf AddType application/x-font-opentype .otf AddType application/font-woff .woff AddType application/x-font-woff .woff AddType application/x-woff .woff AddType application/font-woff .woff2 AddType application/x-font-woff .woff2 AddType application/x-woff .woff2 AddType application/x-font-ttf .ttf AddType application/octet-stream .ttf AddType font/truetype .ttf AddType font/ttf .ttf AddType image/x-icon .ico # RewriteEngine On/Off Options FollowSymLinks RewriteEngine On # fix authorization header RewriteCond %{HTTP:Authorization} .+ RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] # requests for api authorize RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} ^.*/authorize/.*$ RewriteRule ^ api/authorize/index.php [QSA,L] # requests that start with api go down to api/index.php RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} ^.*/api/.*$ RewriteRule ^ api/index.php [QSA,L] # install RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} ^.*/install/.*$ RewriteRule ^ install/index.php [QSA,L] # maintenance RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} ^.*/maint/.*$ RewriteRule ^ maint/index.php [QSA,L] # all others - i.e. web RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^ index.php [QSA,L] # block .log files # No Cache # # # FileETag None # # # Header unset ETag # Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate" # Header set Pragma "no-cache" # Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT" #