我现在的设置是这样的
server
{
listen 80;
server_name
www.dxren.cn;
www.dxren.org;
index index.html index.htm index.php default.html default.htm default.php;
root /home/www.dxren.cn;
include discuz.conf;
location ~ .*\.(php|php5)?$
{
fastcgi_pass unix:/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;
}
但是并没有实现
www.dxren.cn和
www.dxren.org同时能够访问的效果