일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- hadoop
- 별 둘
- 다이소
- 아이비호스팅
- 다음
- 아이비 호스팅
- Geek
- 다음커뮤니케이션
- 로드뷰
- Browser
- 다음 지도
- 다음 로드뷰
- lunamoth
- 파이 키우기
- 연구참여
- KLDP
- Iriver
- openmaru
- 강남역 7번출구
- 백만 악플러 양성 프로젝트
- 크로스 브라우징
- Windows 7
- 애플 블루투스
- 디올리바
- 삼성SDI
- Clix
- 윈도우 7
- 애플 키보드
- 지못미
- 별 넷
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;