티스토리 뷰

Network/PHP

lighttpd에 xe 쓸때 rewrite 먹이기

알 수 없는 사용자 2011. 5. 8. 19:20
url.rewrite = (
    "^/xe/(layouts|m.layouts)/(.+)/(.+)\.html$" =>; "xe/index.php",
 
    "^/xe/(.+)/files/(member_extra_info|attach|cache|faceOff)/(.*)" =>; "xe/files/$2/$3",
    "^/xe/(.+)/(files|modules|common|widgets|widgetStyle|layouts|m.layouts|addons)/(.*)" =>; "xe/$2/$3",
 
    "^(rss|atom)$" =>; "xe/index.php?module=rss&act=$1",
    "^([a-zA-Z0-9_]+)/(rss|atom|api)$" =>; "xe/index.php?mid=$1&act=$2",
    "^/xe/([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)/(rss|atom|api)$" =>; "xe/index.php?vid=$1&mid=$2&act=$3",
 
    "^/xe/([0-9]+)/(.+)/trackback$" =>; "xe/index.php?document_srl=$1&key=$2&act=trackback",
    "^/xe/([a-zA-Z0-9_]+)/([0-9]+)/(.+)/trackback$" =>; "xe/index.php?vid=$1&document_srl=$2&key=$3&act=trackback",
 
    "^/xe/admin/?$" =>; "xe/index.php?module=admin",
 
    "^/xe/([0-9]+)$" =>; "xe/index.php?document_srl=$1",
 
    "^/xe/([a-zA-Z0-9_]+)/?$" =>; "xe/index.php?mid=$1",
    "^/xe/([a-zA-Z0-9_]+)/([0-9]+)$" =>; "xe/index.php?mid=$1&document_srl=$2",
 
    "^/xe/([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)/?$" =>; "xe/index.php?vid=$1&mid=$2",
    "^/xe/([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)/([0-9]+)$" =>; "xe/index.php?vid=$1&mid=$2&document_srl=$3",
 
    "^/xe/([a-zA-Z0-9_]+)/entry/(.+)$" =>; "xe/index.php?mid=$1&entry=$2",
    "^/xe/([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)/entry/(.+)$" =>; "xe/index.php?vid=$1&mid=$2&entry=$3"
)

 

요거를 lighttpd.conf에 집어너

 

우분투는 /etc/lighttpd/lighttpd.conf인데 뭐 어디서 어떻게 쓸건지 모르겠지만 암튼 설정파일 안에다 집어넣는거야

 

/xe/ 말고 딴데 집어넣었으믄 “xe/”로 찾아서 다 바꿔

 

server.modules 안에 “mod_rewrite” 없으면 집어넣고 있으면 앞에 # 붙은거 지워

 

lighttpd 재시작해

 

 

다중계정은 어떻게 하냐고?

 

다중계정은 걍 apache 써.

'Network > PHP' 카테고리의 다른 글

phpBB에 페이스북 Like 버튼 달기  (0) 2011.07.08
xe에 mp4를 jwplayer로 재생하기  (0) 2011.05.08
Portable 웹서버 XAMPP  (0) 2011.03.21
php 4.3.0 에서 경고구문 해결  (0) 2011.01.09
PHP 주민등록번호 알고리즘  (0) 2008.03.07