saya ingin test ubah webserver jadi hiawatha only, soalnya saya pakek hiawathaproxy rasanya kok lemot ya...
padahal HDD SSD Chaced, KVM, 8 core, 3GB memory...
tapi masalahnya saya tidak tahu cara mod_expires, setting url mod_rewrite seperti di httaccess apache, block IP dll....
jika htaccessnya seperti di bawah ini rubah url rewrite rule ke hiawtha bagaimana? terus settingnya dimana?
Options -Indexes
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
RewriteCond %{THE_REQUEST} ^.*/index\.php
RewriteRule ^(.*)index.php$ /$1 [R=301,L]
RewriteRule ^p/(.*).html$ pages.php?p=$1 [L]
RewriteRule ^feed/$ feed.php [L]
RewriteRule ^cat/(.*)/([0-9]+).html$ cat.php?id=$1&p=$2 [L]
# Abuse Agent Blocking
RewriteCond %{HTTP_USER_AGENT} ^Zeus [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Zeus\.*Webster [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ZyBorg [NC]
RewriteRule ^.* - [F,L]
# Abuse bot blocking rule end
</IfModule>
<FilesMatch "config.php|include.php">
Order allow,deny
Deny from all
</FilesMatch>
## EXPIRES CACHING ##
<IfModule mod_expires.c>
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 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 5 days"
</IfModule>
## EXPIRES CACHING ##
# BEGIN W3TC Browser Cache
<IfModule mod_deflate.c>
<IfModule mod_headers.c>
Header append Vary User-Agent env=!dont-vary
</IfModule>
AddOutputFilterByType DEFLATE text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon application/json
<IfModule mod_mime.c>
# DEFLATE by extension
AddOutputFilter DEFLATE js css htm html xml
</IfModule>
</IfModule>
# END W3TC Browser Cache
thanks