开发者社区> 问答> 正文

网站配置文件.conf中网站名称需要一致并不能重复

server {
        listen       80;
        server_name  forum.abc.com;
index index.html index.htm index.php;
root /alidata/www/phpwind;
        error_page 404 = ../index.php;
location ~ .*\.(php|php5)?$
{
  #fastcgi_pass  unix:/tmp/php-cgi.sock;
  fastcgi_pass  127.0.0.1:9000;
  fastcgi_index index.php;
  include fastcgi.conf;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
  expires 30d;
}
location ~ .*\.(js|css)?$
{
  expires 1h;
}
#伪静态规则
include /alidata/server/nginx/conf/rewrite/discuz_x2.conf;
log_format   discuz  '$remote_addr - $remote_user [$time_local] "$request" '
               '$status $body_bytes_sent "$http_referer" '
               '"$http_user_agent" "$http_x_forwarded_for"';
access_log  /alidata/log/nginx/access/phpwind.log discuz;
}
用一键安装包安装的阿里云服务器,当需要实现两个网站时,需要配置两个配置文件,

但这里需要注册的是:网站配置文件.conf中网站名称需要一致并且不能重复!

如下:

展开
收起
inetge 2013-06-20 14:54:12 9151 0
4 条回答
写回答
取消 提交回答
  • 回 3楼(enj0y) 的帖子
    搜嘎
    2013-06-20 15:47:59
    赞同 展开评论 打赏
  • 明白啦
    2013-06-20 15:15:20
    赞同 展开评论 打赏
  • 用控制面板 不手动修改的飘过
    2013-06-20 14:55:18
    赞同 展开评论 打赏
  • Re网站配置文件.conf中网站名称需要一致并不能重复
    知道了
    2013-06-20 14:55:15
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载

相关实验场景

更多