好友
阅读权限20
听众
最后登录1970-1-1
|
本帖最后由 yuechenxing 于 2016-4-5 15:24 编辑
server {
listen 80;
server_name normaladmin.example.com;
index index.html index.htm index.php;
root /www/example;
location / {
index index.php
root /www/example/ci;
if ($request_filename !~ (js|css|images|robots\.txt|index\.php) ) {
rewrite ^(.*)$ /index.php/$1 last;
break;
}
}
location ~ /index.php/ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi.conf;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 1h;
}
#include /server/nginx/conf/rewrite/qsj.conf;
access_log /server/log/nginx/access/renren.log;
}
|
|
发帖前要善用【论坛搜索】功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。 |
|
|
|
|