nginx用戶轉到kangle要注意的一些對應概念。 php
server { listen 80; server_name www.kanglesoft.com; index index.html index.htm index.php; root /data0/htdocs/blog; location ~ .*\.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; include fcgi.conf; } }
<?xml version="1.0" encoding="utf-8"?> <config> <server name='php' proto='fastcgi' host='127.0.0.1' port='9000' life_time='0' /> <vh name='www.kanglesoft.com' doc_root='/data0/htdocs/blog' inherit='off'> <index file='index.html'/> <index file='index.htm'/> <index file='index.php'/> <map file_ext='php' extend='server:php' allow_method='*'/> <bind>!*:80</bind> <host>www.kanglesoft.com</host> </vh> </config>
把這個文件存到kangle/ext目錄下,文件名不限制,使用 html
kangle -r
從新加載便可。 nginx