server
{
include vhosts/vhosts.listen.addr;
access_log logs/access_log main;
#制定多个域名
server_name a.com b.com;
index index.html index.php;
location /{
root /data;
index index.php;
location ~ .*\.(php|php5)?$ {
include fastcgi.conf;
}
}
{
include vhosts/vhosts.listen.addr;
access_log logs/access_log main;
#制定多个域名
server_name a.com b.com;
index index.html index.php;
location /{
root /data;
index index.php;
location ~ .*\.(php|php5)?$ {
include fastcgi.conf;
}
}
#请求重定向
rewrite ^(.*) http://sogou.com last;}