伪静态 nginx问题求助
if (!-e $request_filename){
rewrite "^/welcome$"/index.php last;
rewrite "^/links$"/link.php last;
rewrite "^/shop$" /shop.php last;
rewrite "^/second$" /second.php last;
rewrite "^/invite$"/invite.php last;
.......
}
==============
我用的程序里带的伪静态 nginx.conf 文件里内容是这样的
咋用在LNMP上啊
LNMP的内容是
server
{
listen 80;
server_name 127.0.0.1;
index index.html index.htm index.php default.html default.htm default.php;
root/home/wwwroot/sda;
include other.conf;
location ~ .*\.(php|php5)?$
{
fastcgi_passunix:/tmp/php-cgi.sock;
fastcgi_index index.php;
include fcgi.conf;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
access_log off;
}
===========
是不是在这后面接着加上啊
我加上了
VPS瘫痪了
删了 VPS就好了:(
老大帮忙看下咋弄
[ 本帖最后由 kua5 于 2012-6-27 17:51 编辑 ]
回复 1# 的帖子
include other.conf; #把伪静态文件复制到nginx.conf目录下other.conf 改成你伪静态的文件名如 weijingtai.conf
页:
[1]