摘要:
要将http://dede.com/index.php?t=3用伪静态规则改写成http://dede.com/t3.html,即可在nginx的conf/nginx.conf里面添加即可。在location / {}里添加,如: location / { root D:/phpweb/wwwroot; index index.php index.html index.htm; rewrite ^(.*)/t(\d+)\.html$ $1/index.php?t=3 last; } 仔细观察rewrite ^(.*)/t(\d+)\.html$ $1/index.php?t=3 last... 阅读全文
posted @ 2012-12-16 02:40
洒洒
阅读(12399)
评论(1)
推荐(0)
摘要:
上篇讲了nginx安装与配置,这篇就说下nginx与php组合安装和配置了。 php安装: 1.下载PHPWindows 5.4.9 binaries and source,解压到D:\phpweb\bin\php549目录下。 2.讲以下配置的#注释去掉,即: location ~ \.php$ { root D:/phpweb/wwwroot; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME D:/phpweb/wwwroot$fastcgi_script_nam... 阅读全文
posted @ 2012-12-16 01:56
洒洒
阅读(385)
评论(0)
推荐(0)

浙公网安备 33010602011771号