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

 找回密码
 立即注册
搜索

谁能解释一下这一段

[复制链接]
河科人 发表于 2007-9-24 12:11:36 | 显示全部楼层 |阅读模式
### Discuz!EXP Web Server Settings


Listen 8080
ServerName localhost
ServerAdmin levcn@163.com
ServerRoot "d:\hekeren\Apache2"
DocumentRoot "d:\hekeren\wwwroot"
LoadModule php5_module "d:\hekeren\PHP5\php5apache2_2.dll"
PHPIniDir "d:\hekeren\PHP5\php.ini"
<Directory "d:\hekeren\wwwroot">
Options Indexes FollowSymLinks
Order allow,deny
Allow from all
</Directory>
Alias /icons/   "d:\hekeren\Apache2\icons\"
<Directory "d:\hekeren\Apache2\icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
NameVirtualHost *:8080
<VirtualHost *:8080>
ServerAdmin levcn@163.com
DocumentRoot "d:\hekeren\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>
回复

使用道具 举报

 楼主| 河科人 发表于 2007-9-24 12:12:22 | 显示全部楼层

如何

设置apache的主机头虚拟主机
回复

使用道具 举报

 楼主| 河科人 发表于 2007-9-24 12:12:46 | 显示全部楼层
在httpd.conf添加如下内容:

# For VirtualHost

NameVirtualHost *

<VirtualHost *>

ServerName www.zz.cxm

DocumentRoot /usr/local/apache2/htdocs

</VirtualHost>



<VirtualHost *>

ServerName xoops.zz.cxm

DocumentRoot /usr/local/apache2/htdocs/xoops

</VirtualHost>
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-11-22 02:50 , Processed in 0.088618 second(s), 14 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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