logo 西林@生存 - 骑猪闯天下!
Apache226 多站点设置
2007-10-8 16:57:00 By:xling

打开httpd.conf文件,找到:

<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
    Satisfy all
</Directory>

修改成:

<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    allow from all
    Satisfy all
</Directory>

找到:

# Virtual hosts
# Include conf/extra/httpd-vhosts.conf

修改成:

# Virtual hosts
Include conf/extra/httpd-vhosts.conf

打开conf/extra目录下的httpd-vhosts.conf文件:

按如下示例修改:

<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    DocumentRoot "E:/WEB"
    ServerName localhost
    ServerAlias localhost
    ErrorLog "E:/WEB/logs/error_log"
    CustomLog "E:/WEB/logs/access_log" common
</VirtualHost>

<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    DocumentRoot "E:/WEB/test/www"
    ServerName localhost
    ServerAlias test
    ErrorLog "E:/WEB/test/logs/error_log"
    CustomLog "E:/WEB/test/logs/access_log" common
</VirtualHost>

然后修改你的hosts文件(C:\WINDOWS\system32\drivers\etc)

把test指向127.0.0.1

Ok.

http://localhost/

http://test

分别指向两个不同的文件!

汗。。。弄了一上午,才配好。

转我的贴,写你的名,是一种可耻的行为!请不要让我BS你!
阅读全文 | 回复(2) | 引用通告 | 编辑
2008-2-17 20:18:00')" onMouseOver="vControl('CHANGECOLOR',this)" onMouseOut="vControl('RESETCOLOR',this)"> Re:Apache226 多站点设置
2008-2-17 20:18:00 By:liyfbj
谢谢
转我的贴,写你的名,是一种可耻的行为!请不要让我BS你!
个人主页 | 引用 | 返回 | 删除 | 回复
2007-10-9 19:20:00')" onMouseOver="vControl('CHANGECOLOR',this)" onMouseOut="vControl('RESETCOLOR',this)"> Re:Apache226 多站点设置
2007-10-9 19:20:00 By:qicaispace
又学到了~ 谢谢~
转我的贴,写你的名,是一种可耻的行为!请不要让我BS你!
个人主页 | 引用 | 返回 | 删除 | 回复

发表评论:

    密码:
    主页:
    标题:
    页面数据正在载入...
<<  < 2008 - 10 >  >>
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31
Placard
请职:PHP或JS都行,如果学历要求本科的,请直接忽略。谢谢。 有意者请联系:1fairy1#163.com
Logon System
Search
Info about this blog
Others
myDream
JGrid

数据表格
JTree

树状控件
JMenuTab

标签控件(滑动门)
JTrackBar / JScroll

滑动条/模拟滚动条
JAccordion

(QQ菜单)
关于:
xling,也叫xlingFairy 艾克司令 西林.
Email:1fairy1#163.com
喜欢javascript,喜欢java(汗...还在学习中...水平菜的要死...)
bxna 京ICP备05002321号