Category

htaccess


  • Total Source Code: 4
  • Latest Update Code: Aug 13' 14
  • Total Page : 1
  • You currently on page number : 1

Speed Up Web Access Using Cache in Apache

  • 2014-08-13
  • 65
  • 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 Readmore


Apache setting for CodeIgniter when upload in sub domain

  • 2014-05-20
  • 617
  • 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 Readmore


Proteksi Server Web dari serangan DOS/DDOS/BruteForce

  • 2013-12-14
  • 440
  • 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 Readmore


Allow Single URL Through .htaccess Password Protection

  • 2013-11-20
  • 265
  • 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 Readmore




Category