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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[已解决] windows系统,apache能否多个盘符装不同网站程序

[复制链接]
laurent25 发表于 2010-12-12 16:26:01 | 显示全部楼层 |阅读模式
本帖最后由 laurent25 于 2010-12-12 16:54 编辑

我的vps主机现在硬盘满了,想要增加另外的硬盘放数据,不知道apache如何实现多网站多盘符设置。
windows2003系统

域名:www.domain.com在D盘,现在需要增加一些视频资料,因为空间需求比较大,打算放E盘。
打算把视频资料用另外的二级域名:v.domain.com指向,不知道apatch该如何实现。

<VirtualHost *:80>
ServerName www.domain.com
ServerAlias www.domain.com
DocumentRoot d:/www
</VirtualHost>

<VirtualHost *:80>
ServerName v.domain.com
ServerAlias v.domain.com
DocumentRoot e:/vedio
</VirtualHost>

我试过这样配置,但无法访问。有没人做过这样的配置啊。

 楼主| laurent25 发表于 2010-12-12 16:54:25 | 显示全部楼层
没人问津
回复

使用道具 举报

 楼主| laurent25 发表于 2010-12-12 17:13:49 | 显示全部楼层
<VirtualHost *:80>
    ServerAdmin admin@163.com
    DocumentRoot "e:/vedio"
    ServerName www.lingdui123.net
    ServerAlias lingdui123.net
    DocumentRoot "e:/vedio"
    <Directory "e:/vedio">
    Options FollowSymLinks IncludesNOEXEC Indexes
    DirectoryIndex index.html index.htm     default.htm index.php default.php index.cgi     default.cgi index.pl default.pl index.shtml
    AllowOverride Options FileInfo
    Order Deny,Allow
    Allow from all
    </Directory>
</VirtualHost>
回复

使用道具 举报

zxjxl918 发表于 2010-12-22 00:45:09 | 显示全部楼层
当然可以
回复

使用道具 举报

youbia 发表于 2010-12-22 17:18:34 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-18 15:57 , Processed in 0.114067 second(s), 16 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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