Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

如何修改APACHE。CONF文件 支持多站点

[复制链接]
cdk1985 发表于 2007-12-13 11:50:56 | 显示全部楼层 |阅读模式
目前偶的配置文件是这样的
### Discuz!EXP Web Server Settings


Listen 80
ServerName localhost
ServerAdmin webmaster@domain.com
ServerRoot "d:\Discuz!EXP\Apache2"
DocumentRoot "d:\Discuz!EXP\wwwroot"
LoadModule php5_module "d:\Discuz!EXP\PHP5\php5apache2_2.dll"
PHPIniDir "d:\Discuz!EXP\PHP5\php.ini"
<Directory "d:\Discuz!EXP\wwwroot">
Options Indexes FollowSymLinks
Order allow,deny
Allow from all
</Directory>
Alias /icons/   "d:\Discuz!EXP\Apache2\icons\"
<Directory "d:\Discuz!EXP\Apache2\icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin webmaster@domain.com
DocumentRoot "d:\Discuz!EXP\wwwroot"
ServerName *
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)/archiver/([a-z0-9-]+.html)$ $1/archiver/index.php?$2
RewriteRule ^(.*)/forum-([0-9]+)-([0-9]+).html$ $1/forumdisplay.php?fid=$2&page=$3
RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+).html$ $1/viewthread.php?tid=$2&extra=page%3D$4&page=$3
RewriteRule ^(.*)/profile-(username|uid)-(.+).html$ $1/viewpro.php?$2=$3
RewriteRule ^(.*)/space-(username|uid)-(.+).html$ $1/space.php?$2=$3
</IfModule>
</VirtualHost>


用的是Discuz!EXP  默认 的设置。想支持多站点 该如何添加 单添加一下代码 不行
<VirtualHost *:80>
ServerAdmin webmaster@domain.com
DocumentRoot "d:\Discuz!EXP\wwwroot"
ServerName *
</VirtualHost>
club123456 发表于 2007-12-13 14:47:05 | 显示全部楼层
好像有谁上次发了一篇关于这个的文章.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-11-20 01:22 , Processed in 0.021301 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表