??xml version="1.0" encoding="utf-8" standalone="yes"?>国产精品一区二区三区精品,亚洲精品乱码视频,91wwwcom在线观看http://www.aygfsteel.com/gdufo/category/53678.htmlzh-cnMon, 15 Jul 2013 17:40:35 GMTMon, 15 Jul 2013 17:40:35 GMT60本地试dedecms二域名http://www.aygfsteel.com/gdufo/archive/2013/06/22/400853.htmlgdufogdufoSat, 22 Jun 2013 08:18:00 GMThttp://www.aygfsteel.com/gdufo/archive/2013/06/22/400853.htmlhttp://www.aygfsteel.com/gdufo/comments/400853.htmlhttp://www.aygfsteel.com/gdufo/archive/2013/06/22/400853.html#Feedback1http://www.aygfsteel.com/gdufo/comments/commentRss/400853.htmlhttp://www.aygfsteel.com/gdufo/services/trackbacks/400853.html

试人:QQ -- 35629400 子夜时分,如有错误Q请指出?/font>

环境Q?font face="Times New Roman">Win7+Phpnow+V57_UTF8_SP1(2013-6-7版本)

一?/span>pȝ讄

  1.【后台管理?/font>--》【系l?/font>--》【核心设|】,U色区域讄?#8220;?#8221;


  2.【后台管理?/font>--》【核心?/font>--》【网站栏目管理?/font>--》选择一个顶U栏目进行修攏V?/font>

在【高U选项】中“启用”【多站点支持?/span>

在【绑定域名】中输入所要的域名Q如Q?font face="Times New Roman">http://webbase.chugui.com


二?/span>Apache中设|?/font>

  打开Apache的虚拟主机配|文件?/font>

  如我的文件在Q?/span>D:\Phpnow\Apache-22\conf\extra\httpd-vhosts.conf 

<Directory ../vhosts>

    AllowOverride All

    Order allow,deny

    Allow from all

</Directory>

NameVirtualHost *   #q个必须?/font>

<VirtualHost *>

    DocumentRoot ../htdocs

    ServerName default:80

    ErrorLog logs/default-error_log

</VirtualHost>

<VirtualHost *>

    <Directory "D:/Phpnow/htdocs/dedecms">

        Options -Indexes FollowSymLinks

        Allow from all

        AllowOverride All

    </Directory>

    ServerAdmin admin@ww2.chugui.com

    DocumentRoot "D:/Phpnow/htdocs/dedecms"

    ServerName ww2.chugui.com:80

    ServerAlias *.ww2.chugui.com

    ErrorLog logs/ww2.chugui.com-error_log

    php_admin_value open_basedir "D:\Phpnow\htdocs\dedecms;C:\Windows\Temp;"

</VirtualHost>

<VirtualHost *>

    <Directory "D:/Phpnow/htdocs/dedecms/html/webbase">  

        Options -Indexes FollowSymLinks

        Allow from all

        AllowOverride All

    </Directory>

    ServerAdmin admin@webbase.chugui.com

    DocumentRoot "D:/Phpnow/htdocs/dedecms/html/webbase"

    ServerName webbase.chugui.com:80  #二域名指定?/font>

    ErrorLog logs/webbase.chugui.com-error_log

    php_admin_value open_basedir "D:\Phpnow\htdocs\dedecms\html\webbase;C:\Windows\Temp;"

</VirtualHost>

三?/span>如果公网上做以上两步p了,Z在本地测试,需要修?font face="Times New Roman">host文g?/font>

   在文件中加入以下几行Q(目的告诉览器以下地址不用d|上解析Q?/span>

   127.0.0.1 ww2.chugui.com

   127.0.0.1 chugui.com

   127.0.0.1 webbase.chugui.com

四?/span>针对|上有些要修?/span>channelunit.help.php里面的内容,否则会现部门?/font>js,css有引用的问题Q我没有修改Q貌g没有发现错。这个有待后期考证?/font>

    //是否强制使用l对|址

        if($GLOBALS['cfg_multi_site']=='Y')

        {

            if($siteurl=='')

            {

                $siteurl = $GLOBALS['cfg_basehost'];

            }

            if($moresite==1)

            {

                $articleUrl = preg_replace("#^".$sitepath."#", '', $articleUrl);

            }

            if(!preg_match("/http:/", $articleUrl))

            {

                $articleUrl = $siteurl.$articleUrl;

            }

        }

五?/span>x查看l果如下Q?/span>

  


六?br />q州白马口出租

番禺大石Il修中心




gdufo 2013-06-22 16:18 发表评论
]]>
վ֩ģ壺 | | | ˳| | | ˮ| | | | ʱ| | ֦| ˳| | | | ˹| ̩| Ұ| | | ½| ĺ| | | | ʡ| | | | Ҫ| | | | | ͷ| | | | |