Tag

apache

  • Total Source Code 4
  • Total Page : 1
  • You currently on page number : 1

Allow Single URL Through .htaccess Password Protection

  • 00 0000
  • 287
  • 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 Read more


Proteksi Server Web dari serangan DOS/DDOS/BruteForce

  • 14 December 2013
  • 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 Read more


Apache setting for CodeIgniter when upload in sub domain

  • 20 May 2014
  • 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 Read more


Speed Up Web Access Using Cache in Apache

  • 13 August 2014
  • 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 Read more




Category