LNMP 基于域名的虚拟主机配置 (Centos5.6)

.

.

server
{
listen ;
#listen [::]: default_server ipv6only=on;
server_name www.blog.com;
index index.html index.htm index.php;
root /home/wwwroot/blog/public; #error_page /.html;
include enable-php.conf; location /nginx_status
{
stub_status on;
access_log off;
} location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
} location ~ .*\.(js|css)?$
{
expires 12h;
} location ~ /\.
{
deny all;
} access_log /home/wwwlogs/access.www.blog.com.log access;
} server
{
listen ;
#listen [::]: default_server ipv6only=on;
server_name www.yiibasic.com;
index index.html index.htm index.php;
root /home/wwwroot/yiibasic/web; #error_page /.html;
include enable-php.conf; location /nginx_status
{
stub_status on;
access_log off;
} location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
} location ~ .*\.(js|css)?$
{
expires 12h;
} location ~ /\.
{
deny all;
} access_log /home/wwwlogs/access.www.yiibasic.com.log access;
}

.

上一篇:jquery遍历节点 children(),next(),prev(),siblings()closest() 等一些常用方法...


下一篇:解决JQuery EasyUI onLoadSuccess执行两次的问题