Nginx服务器配置CI框架vhost文件配置
本帖最后由 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_indexindex.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;
}
页:
[1]