styx.studio
nginx_main_logo

nginx settings

by styx on August 5, 2011 · 1 Comment · in Linux

5년간 사용하던 lighttpd 에서, nginx 로 바꾸게 되었는데, apache 를 사용하던 사람들 입장에선 nginx 설정이 쉽다고 하지만, lighttpd 를 사용한 입장에선, 별로.. global 지시자가 없어서, location {} 마저 server {} 마다 집어넣어줘야 하는 불편이 이만저만 아니다. location {} 을 http{} 에서 global 선언이 안되다 보니, fastcgi 역시 매 vhost 의 server {} 에 넣어줘야하는 답답함. [...]

Continue Reading →
logo_lighttpd

lighttpd php 보안설정

by styx on July 25, 2011 · No Comments · in Linux

lighttpd 1.5.x 에서 lighttpd 1.4 대로 내려온 이후 (1.5 개 개발이 더이상 진행하지 않음으로) 설정파일을 다시 작성하던 중에, 아이러니 한 부분이 있어서, 찾아보다가… 이런 링크를 발견. 즉. http://bystyx.com/test.txt 라는 파일이 있으며, 이 URL을 그대로 실행하면 php 코드가 그대로 노출이 되나, http://bystyx.com/test.txt/nonexists.php 와 같이, URL 끝에만 php 를 붙여주면 test.txt 가 php로 실행이 된다. fastcgi.server 문법에 [...]

Continue Reading →
xe

lighttpd rewrite example for xpressengine

by styx on February 6, 2011 · 1 Comment · in Labs

xpressengine 의 lighttpd web server 를 위한 rewrite config example Directory 기반의 .htaccess 를 지원하지 않아 DocumentRoot 기준으로 작성을 해야하므로, 디렉토리명은 각자 설치된 내용에 따라 변경하여 사용한다.

Continue Reading →
slice_host

CentOS – Installing Nginx via yum

by styx on January 30, 2011 · 1 Comment · in Linux

Nginx is a popular lightweight server for those who do not need the bulk and extra services that Apache may offer. This article will look at installing Nginx on a CentOS Slice using the ‘yum’ package manager. Yum Using the inbuilt package manager to install packages is a great idea as it solves dependency issues [...]

Continue Reading →

Linux Find SCSI Hard Disk Model, Serial Number, Size, and Total Sectors Information

by styx on January 29, 2011 · No Comments · in Linux

Simply use utility called sdparm to fetch SCSI / SATA device information. Inquiry data including Vital Product Data (VPD) pages can also be displayed. Commands associated with starting and stopping the medium; loading and unloading the medium; and other housekeeping functions may also be performed by this utility. In short you can get or set [...]

Continue Reading →
cufonLarge

Cufon 으로 한글폰트 생성시 사용할 Subset

by styx on January 27, 2011 · No Comments · in Developement

Cufon 에서 한글 TTF를 이용하여 Cufon.JS 폰트를 생성시에, Subset 선택에서 All 을 선택하게 되면, 실제 TTF용량과 비슷하거나, 혹은 이보다 더 커질 수 있다. 일반적으로 사용하는 완성형 한글 외에 특수 확장 한글까지 전부 포함이 되어서 생기는 문제가 발생하는 것이다. 해결방안은 과거 WEFT를 이용하여 웹폰트(EOT)를 만들때 사용된 Subset 에 포함된 내용을 이용하면 용량이 절반이상 줄일 수 있다. [...]

Continue Reading →
japan

Japan – The Strange Country (Japanese ver.) / Kenichi

by styx on April 1, 2010 · No Comments · in Design

Japan – The Strange Country (Japanese ver.) from Kenichi on Vimeo.

Continue Reading →
4435622439_c089527019_o

Eco Coke Bottle design / Andrew Kim

by styx on March 31, 2010 · No Comments · in Design

*Edit: Here are the sketches from this project: design by Andrew Kim http://designfabulous.blogspot.com/2010/03/eco-coke-bottle-design.html

Continue Reading →
logo_lighttpd

mod-proxy-core and SQF

by styx on March 29, 2010 · No Comments · in Linux

mod-proxy-core and SQF mod-proxy-core has 3 different balancers for different needs. Round Robin, Shortest Queue First and CARP. We can categorize the balancers into two sections: load balancing by distribution (RR, SQF) load balancing by separation (CARP) Round Robin Round Robin (RR) is simple and straight forward. If you have 3 hosts A1 A2 A3 [...]

Continue Reading →
logo_lighttpd

disable PHP in folder, lighttpd

by styx on March 29, 2010 · 1 Comment · in Linux

게시판의 첨부파일이 저장되는 업로드 디렉토리에서는 php와 같은 스크립트가 실행되지 않도록 한다.   apache 에서는 아래의 문법을 통하여 php 확장자의 파일을 무력화 할 수 있다. <DirectoryMatch “bbs/(data|data2|icon)”>     RemoveType .php .html .htm .inc </DirectoryMatch> 단 lighttpd 에서는 이와같은 방법이 존재하지 않으므로, 아래와 같이 문법을 사용한다. lighttpd 1.4.x $HTTP["url"] =~ “^bbs/(data|data2|icon)” {     fastcgi.server = () } [...]

Continue Reading →
  • Categories

    • Design (2)
    • Developement (1)
    • Labs (1)
    • Linux (6)
  • Posts

    • nginx settings
    • lighttpd php 보안설정
    • lighttpd rewrite example for xpressengine
    • CentOS – Installing Nginx via yum
    • Linux Find SCSI Hard Disk Model, Serial Number, Size, and Total Sectors Information
  • Comments

    • Leana on nginx settings
    • help about ipad on lighttpd rewrite example for xpressengine
    • Tweets that mention CentOS – Installing Nginx via yum -- Topsy.com on CentOS – Installing Nginx via yum
    • Louise Lambert on disable PHP in folder, lighttpd
  • Warpgate

    • Facebook Facebook
    • picplz picplz
    • Tumblr Tumblr
    • Twitter Twitter
  • Meta

    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.org

styx.studio

© 2011 styx.studio
Platform by PageLines