- qazfw2012-04-13金牌会员28283
- 本帖最后由 qazfw 于 2012-4-13 15:14 编辑 *
在home/wwwroot下建一个目录 vod.sdfsffsdfsdftrh56h56.tv
在/usr/local/nginx/conf/vhost/下建一个文件 vod.sdfsffsdfsdftrh56h56.conf受益的朋友给加点分,你看行不
我是用命令建虚拟主机出现问题后,才这样弄的,都没人帮我处理出问题的问题。
以下是文件内容,你只需要改域名就可以了。
没人加分我把核心内容去除了,BS,只看不评分
不知道各位高手有什么新看法>>>>
server
{
listen 80;
server_name vod.sdfsffsdfsdftrh56h56.tv;
index index.html index.htm index.php default.html default.htm default.php;
root /home/wwwroot/vod.sdfsffsdfsdftrh56h56.tv;error_page 404 = /404.html;
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;
}log_format vod.sdfsffsdfsdftrh56h56.tv '$remote_addr - $remote_user [$time_local] $request '
'$status $body_bytes_sent $http_referer '
'$http_user_agent $http_x_forwarded_for';
access_log /home/wwwlogs/vod.sdfsffsdfsdftrh56h56.tv.log vod.sdfsffsdfsdftrh56h56.tv;
}