Kategori

htaccess

  • Jumlah Kode: 4
  • Update Kode Terbaru: Aug 13' 14
  • Jumlah Halaman : 1
  • Anda berada di halaman : 1

Speed Up Web Access Using Cache in Apache

  • 2014-08-13
  • 230
  • apache, caching, web, speed up

This script can accelerate the process of loading page your website, by using Apache on an Htaccess file. we will deflate module that bundled on apache default, below sample script to compress with gzip SetOuputFilter DEFLATE They will compress files with extension .html .css .js and .php For complete function caching use this: #First Compress Baca kanjut


Apache setting for CodeIgniter when upload in sub domain

  • 2014-05-20
  • 903
  • codeigniter,command,apache

Use this command : RewriteEngine On RewriteBase / RewriteCond %{REQUEST_URI} ^/system.* RewriteRule ^(.*)$ index.php?/$1 [NC,L,QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.+)$ index.php?/$1 Baca kanjut


Proteksi Server Web dari serangan DOS/DDOS/BruteForce

  • 2013-12-14
  • 667
  • apache, ddos,web

Untuk proteksi webserver Apache dari serangan DOS/DDOS/BruteForce dapat kita lakukan dengan mengaktifkan module mod_evasive. Langkah-langkahnya adalah sebagai berikut(CentOS): 1. Install httpd-level: # yum -y install httpd-devel 2. Ekstrak file mod_evasive_1.10.1.tar.gz: # tar xzvf mod_evasive_1.10.1.tar.gz 3. Pindah ke direktori mod_evasive: # cd mod_evasive 4. Install paket module Baca kanjut


Allow Single URL Through .htaccess Password Protection

  • 2013-11-20
  • 325
  • htacces,apache

This code is useful for multi environment setups (staging, production, etc.) it allows you to keep your htaccess files in sync while maintaining an htpasswd on your development environment or anything but the live environment.#allows a single uri through the .htaccess password protection SetEnvIf Request_URI "/testing_uri$" test_uri #allows everything if its on a certain host SetEnvIf Baca kanjut




Kategori