InfoQ

交流

讨论:在Windows下用Apache做虛擬主機用什麽方法要?

作者 Lonely 发布于 2003-09-02 分类:php基础编程

謝謝



逛论坛交流在Windows下用Apache做虛擬主機用什麽方法要?

加入书签
digg+,
reddit+,
del.icio.us+,
dzone+

10 条回复

回复

两种方法:基于域名和基于IP. 发表人 chengxin119 发表于 09月28日
如果是ISP,需要处理大量虚拟主机。则需.. 发表人 chengxin119 发表于 09月28日
基于IP的: Listen 80 .. 发表人 chengxin119 发表于 09月28日
我想注冊一個帳號可以同時開通HTTP和FT.. 发表人 Lonely 发表于 09月28日
基于名字的。 listen 80 Nam.. 发表人 chengxin119 发表于 09月28日
那就用第二个方案了。 发表人 chengxin119 发表于 09月28日
QUOTE: 最初由 chengxin119 发布.. 发表人 chengxin119 发表于 09月28日
QUOTE: 最初由 chengxin119 发布.. 发表人 Lonely 发表于 09月28日
它提示你的WEB根目录有问题。你试一下:.. 发表人 chengxin119 发表于 09月28日
又搞错了! DocumentRoot c:Program .. 发表人 chengxin119 发表于 09月28日
  1. 两种方法:基于域名和基于IP.

  2. 如果是ISP,需要处理大量虚拟主机。则需要使用群集虚拟驻流(mass virtual hosting).

  3. 基于IP的:
    Listen 80


    ServerAdmin sea@zzti.edu.cn
    DocumentRoot "f:www/web"

    Options ExecCGI
    Order allow,deny
    Allow from All

    DirectoryIndex index.php index.php3 index.htm index.html


    Listen 8080


    ServerAdmin sea@zzti.edu.cn
    DocumentRoot "f:bs/upload"

    Options ExecCGI
    Order allow,deny
    Allow from All

    DirectoryIndex index.php index.php3 index.htm index.html

  4. 我想注冊一個帳號可以同時開通HTTP和FTP,可以多個域名綁在一個IP上,具體怎麽實現?

  5. 基于名字的。

    listen 80

    NameVirtualHost 111.22.33.44

    ServerName www.zzti.edu.cn
    DocumentRoot /www/www.zzti.edu.cn



    ServerName www.other.com
    DocumentRoot /www/www.zzti.edu.cn

  6. 那就用第二个方案了。


  7. QUOTE:
    最初由 chengxin119 发布
    [B]基于名字的。

    listen 80

    NameVirtualHost 111.22.33.44

    ServerName www.zzti.edu.cn
    DocumentRoot /www/www.zzti.edu.cn



    写错了。应该是:
    listen 80

    NameVirtualHost 111.22.33.44

    ServerName www.zzti.edu.cn
    DocumentRoot /www/www.zzti.edu.cn



    ServerName www.other.com
    DocumentRoot /www/www.other.com


  8. QUOTE:
    最初由 chengxin119 发布
    [B]基于名字的。

    listen 80

    NameVirtualHost 111.22.33.44

    ServerName www.zzti.edu.cn
    DocumentRoot /www/www.zzti.edu.cn



    提示錯誤
    我的http://ttm.com.cn指向我的218.86.173.203

    在Apache下配置

    ServerName ttm.com.cn
    DocumentRoot c:/Program Files/Apache Group/Apache/wwwroot/wdb/


    Syntax error on line 1024 of c:/program files/apache group/apache/conf/httpd.con
    f:
    DocumentRoot takes one argument, Root directory of the document tree
    Note the errors or messages above, and press the key to exit. 22...

  9. 它提示你的WEB根目录有问题。你试一下:
    DocumentRoot c:/Program FilesApache GroupApachewwwrootwdb
    这个东西涉及问题较多,你最好看些这方面的书籍。

  10. 又搞错了!
    DocumentRoot c:Program Files/Apache Group/Apache/wwwroot/wdb




  11. 我有话要讲:(可以匿名发表, 发广告的有多远请滚多远!!!)

    昵称: 请输入验证码:


抢着回答

关于函数

我是一个PHP的菜鸟,现在遇到一个问题.就是函数explode()不知道应...

WINDOWS的那个东东怎么做啊?

在WINDOWS里面不是有个自动更新的网页吗?那个是怎么做的啊 进去...

关于把字符转换为html代码。。。。。

我想把 转换为html代码,比如在添加新闻时添加: 中国PHP连盟...

致歉及其他,能见者请进,谢。

相关贴子: http://phpx.com/happy/showthread.php?s=&thread...

各位村里的居民,我是新人吗?

如是

请问关于mysql数据库的一个问题

如果为数据表增加一列?sql 语句怎么写?

二进制文件的读取

PHP和C有一定的关系,在此问个C问题:在unix系统中,如何将一个二...

网页中有中文,英文,如何让他们各自显...

偶用了个简单的STYLE:font-size:14px 结果中文美观,英文难看...

一般的oa系统中自定义工具栏,菜单怎么...

怎么做的不要像网站,自定义窗体风格。。。?

問PHP編寫企業管理程式的可行性?

請問各位大俠,中小型的制造企業,用PHP按需求編寫基於WEB的物料...

[]