가상호스트 mod_rewrite 및 gzip 설정

[code xml]
ServerAdmin username@email.com
DocumentRoot /home/user/www
ServerName localhost

<directory home/user/www>
AllowOverride All
Order deny,allow
Allow from all

RewriteEngine On
php_flag session.auto_start ON

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
</directory>

AddOutputFilterByType DEFLATE text/css text/html application/x-javascript application/javascript

<ifmodule mod_deflate.c="">
SetOutputFilter DEFLATE
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary

SetEnvIfNoCase Request_URI \.(?:exe|t?gz|zip|bz2|sit|rar)$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.pdf$ no-gzip dont-vary
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip

BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
</ifmodule>[/code]

'IT > Tech' 카테고리의 다른 글

php hiphop 컴파일 설치  (0) 2010/09/20
xampp 에서 curl 설정  (0) 2010/09/16
가상호스트 mod_rewrite 및 gzip 설정  (0) 2010/09/14
p3p  (0) 2010/09/13
Perl, Python 및 PHP를 위한 Eclipse 개발 환경 빌드하기  (0) 2010/09/08
아파치 특정 IP 차단 및 허용  (0) 2010/09/07
트랙백 0 댓글 0개가 달렸습니다.
prev 1 ... 107 108 109 110 111 112 113 114 115 ... 548 next