Apache 설정

LogFormat "%V:%p %{pid}P (%T%X) %h %l %u %t \"%r\" %>s %I/%O %b \"%{Referer}i\" \"%{User-Agent}i\"" combined

크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기

Posted by 노는총각

2008/08/19 12:14 2008/08/19 12:14
Response
No Trackback , 2 Comments
RSS :
http://blog.zeroidle.com/rss/response/148

Trackback URL : http://blog.zeroidle.com/trackback/148

Comments List

  1. 노는총각 2009/05/20 18:20 # M/D Reply Permalink

    apache 1.3

    LogFormat "%V:%p (%T) %h %l %u %t \"%r\" %>s / %b \"%{Referer}i\" \"%{User-Agent}i\"" combined

  2. 노는총각 2009/05/20 18:24 # M/D Reply Permalink

    cpan

    install Geo::IP

Leave a comment
[로그인][오픈아이디란?]

apache

./configure --prefix=/usr/local/apache2 --enable-so --with-mpm=prefork --enable-mods-shared=most

--enable-mods-shared=all 하면 centos rpm처럼 기본적인거 외엔 아무것도 포함안한다.(모두 동적로딩)

--enable-mods-shared=most

크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기

Posted by 노는총각

2008/02/14 13:25 2008/02/14 13:25
Response
No Trackback , No Comment
RSS :
http://blog.zeroidle.com/rss/response/80

Trackback URL : http://blog.zeroidle.com/trackback/80

Leave a comment
[로그인][오픈아이디란?]

이미지캐시

내 서버 이미지 캐시

ExpiresActive On

<IfModule expires_module>
    ExpiresActive on
    ExpiresDefault "access plus 2 weeks"
    ExpiresByType image/gif "access plus 1 month"
    ExpiresByType image/jpeg "access plus 1 month"
    ExpiresByType image/png "access plus 1 month"
    ExpiresByType image/x-icon "access plus 1 month"
    <FilesMatch ".(php|php5)$">
        ExpiresByType text/html "now"
    </FilesMatch>
</IfModule>

크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기

Posted by 노는총각

2008/01/21 17:05 2008/01/21 17:05
Response
No Trackback , No Comment
RSS :
http://blog.zeroidle.com/rss/response/60

Trackback URL : http://blog.zeroidle.com/trackback/60

Leave a comment
[로그인][오픈아이디란?]

mod_expires 설정

vi /etc/httpd/conf.d/expires.conf

ExpiresActive On
ExpiresByType image/gif A2592000
ExpiresByType image/png A2592000
ExpiresByType image/jpeg A2592000

ExpiresByType text/css A2592000

ExpiresByType application/x-javascript A2592000

크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기

Posted by 노는총각

2008/01/21 17:05 2008/01/21 17:05
Response
No Trackback , No Comment
RSS :
http://blog.zeroidle.com/rss/response/59

Trackback URL : http://blog.zeroidle.com/trackback/59

Leave a comment
[로그인][오픈아이디란?]

mod_deflate 설정시 파일 다운로드 에러

우선 tc//blog/blog/attachment/index.php 파일에서

$attachment['mime'] = $attachment['mime'] == "" ? "application/octet-stream" : $attachment['mime'];

mime타입이 없으면 옥텟스트림으로 mime타입을 바꿔주게 설정하였다.

또 deflate설정을 아래와 같이 변경해 exe파일이면 압축되지 않게 하였다.

물론 blog/attachment/index.php을 수정하지 않고 exe 확장자로 헤더에 정의 되어있으니 상관없긴 하지만
그래도 기분상^^

<Location />
    AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xhtml+xml
    AddOutputFilterByType DEFLATE text/css application/javascript text/javascript
    AddOutputFilterByType DEFLATE application/x-httpd-php application/x-httpd-fastphp application/x-httpd-eruby
    AddOutputFilterByType DEFLATE application/xml application/rss+xml application/atom+xml image/svg+xml

    # Netscape 4.x has some problems…
    BrowserMatch ^Mozilla/4 gzip-only-text/html

    # Netscape 4.06-4.08 have some more problems
    BrowserMatch ^Mozilla/4.0[678] no-gzip

    # MSIE masquerades as Netscape, but it is fine
    BrowserMatch bMSIE !no-gzip !gzip-only-text/html

    # NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48
    # the above regex won't work. You can use the following
    # workaround to get the desired effect:
    #BrowserMatch bMSI[E] !no-gzip !gzip-only-text/html

    # Don't compress images, compressed files, movies, audio files
    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
    SetEnvIfNoCase Request_URI .avi$ no-gzip dont-vary
    SetEnvIfNoCase Request_URI .mov$ no-gzip dont-vary
    SetEnvIfNoCase Request_URI .mp3$ no-gzip dont-vary
    SetEnvIfNoCase Request_URI .mp4$ no-gzip dont-vary
    SetEnvIfNoCase Request_URI .rm$ no-gzip dont-vary

    # Make sure proxies don't deliver the wrong content
    Header append Vary User-Agent env=!dont-vary

    # n = 1..9 with 9 being the highest compression level. Standard is 6.
    # DeflateCompressionLevel
</Location>

크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기

Posted by 노는총각

2008/01/17 14:12 2008/01/17 14:12
Response
No Trackback , No Comment
RSS :
http://blog.zeroidle.com/rss/response/52

Trackback URL : http://blog.zeroidle.com/trackback/52

Leave a comment
[로그인][오픈아이디란?]

블로그 이미지

버그가 없어도 전혀 기쁘지 않아!!!

- 노는총각

Notices

Archives

Calendar

«   2010/03   »
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      

Site Stats

Total hits:
51626
Today:
37
Yesterday:
76