일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- Geek
- 별 넷
- 다음
- Windows 7
- Iriver
- 다음 로드뷰
- 별 둘
- 다이소
- 아이비 호스팅
- lunamoth
- 애플 키보드
- 다음커뮤니케이션
- 애플 블루투스
- 크로스 브라우징
- 파이 키우기
- 윈도우 7
- 로드뷰
- openmaru
- hadoop
- 디올리바
- Browser
- 연구참여
- 지못미
- 강남역 7번출구
- Clix
- 삼성SDI
- 백만 악플러 양성 프로젝트
- 아이비호스팅
- KLDP
- 다음 지도
Archives
- Today
- Total
FUN
Howto Install Textcube on Nginx (alpha) 본문
Howto Install Textcube on Nginx (alpha)
1. install nginx & mysql
2. install fastcgi and configure it with nginx.
3. turn on fastcgi daemon & nginx.
4. install textcube.
follow the installation guidelines and check for 'Do not use rewrite module'5. turn nginx daemon off
6. add these lines to your nginx.conf
Caution! Do not add these lines before install textcube!
Don't forget to change 'tc' in line 1 & 2 to your settings.
e.g. '','tt', 'blog' and etc..
location /tc/ {
set $rewrite_base '/tc';
if (!-f $request_filename) {
rewrite ^(thumbnail)/([0-9]+/.+)$ cache/$1/$2;
}
if ($request_filename ~* ^(cache)+/+(.+[^/])\.(cache|xml|txt|log)$) {
return 403;
}
if (-d $request_filename) {
rewrite ^(.+[^/])$ $1/;
}
rewrite ^(.*)$ $rewrite_base/rewrite.php last;
}
7. turn your nginx daemon on.
8. login your blog to flush caches.
9. Ta-da~! enjoy your textcube! :)
Misc
tested for tc 1.7, and 1.8 also.
I used http://sunblu.sh/2008/04/installing-nginx-and-php-with-fastcgi-on-mac-os-x-105-leopard/ as reference to make test environment.
trouble shooting :
If you have any problems with uploading, add this line in server section of your nginx.conf. "8m" means 8MB.
client_max_body_size 8m;