免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4059 | 回复: 9
打印 上一主题 下一主题

[Web] 用apache2+windows服务器的朋友进来,我有个问题想请教?  关闭 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-07-26 13:33 |只看该作者 |倒序浏览
我配的是windows2003+apache2.0.54+php5.0.4+mysql-4.1.12-win32

我试了网站目录放在C盘apache2下可以访问正常,但放到别的磁盘使用域名访问就提示:
Not Found
The requested URL / was not found on this server.

<VirtualHost 61.135.136.213>;
ServerAdmin webmaster@5rap.com
DocumentRoot "c:/apache2/htdocs"
ServerName 61.135.136.213
ErrorLog logs/dummy-host.example.com-error_log
CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>;
<VirtualHost 61.135.136.213>;
DocumentRoot f:/5rap
ServerName www.5rap.com
</VirtualHost>;

==================================
<VirtualHost 61.135.136.213>;
DocumentRoot c:/apache2/5rap
ServerName www.5rap.com
</VirtualHost>;
这个可以访问,可是我C盘空间不够,要指定到F盘,应该怎么配置?

论坛徽章:
0
2 [报告]
发表于 2005-07-26 18:27 |只看该作者

用apache2+windows服务器的朋友进来,我有个问题想请教?

全局路径修改下!

论坛徽章:
0
3 [报告]
发表于 2005-07-26 18:35 |只看该作者

用apache2+windows服务器的朋友进来,我有个问题想请教?

所有的虚拟目录要在全局目录下建立!

论坛徽章:
0
4 [报告]
发表于 2005-07-26 20:17 |只看该作者

用apache2+windows服务器的朋友进来,我有个问题想请教?


  1. #
  2. # Based upon the NCSA server configuration files originally by Rob McCool.
  3. #
  4. # This is the main Apache server configuration file.  It contains the
  5. # configuration directives that give the server its instructions.
  6. # See <U
  7. ......
  8. ServerAdmin 51solo@163.com
  9. DocumentRoot f:/5rap/blog
  10. ServerName blog.5rap.com
复制代码

==============================================
Apache2 服务因 1 (0x1) 服务性错误而停止。
事件日志提示的错误是:
The Apache service named  reported the following error:
>;>;>; Warning: DocumentRoot [F:/5d5i.com] does not exist     .
The Apache service named  reported the following error:
>;>;>; Warning: DocumentRoot [F:/5rap.com/blog] does not exist     .
The Apache service named  reported the following error:
>;>;>; DocumentRoot must be a directory     .
The Apache service named  reported the following error:
>;>;>; Syntax error on line 974 of C:/Apache2/conf/httpd.conf:     .

论坛徽章:
0
5 [报告]
发表于 2005-07-27 00:29 |只看该作者

用apache2+windows服务器的朋友进来,我有个问题想请教?


  1. ServerAdmin 51solo@163.com
  2. DocumentRoot f:/5rap
  3. ServerName www.5rap.com

  4. ServerAdmin 51solo@163.com
  5. DocumentRoot f:/5d5i
  6. ServerName www.5d5i.com

  7. ServerAdmin 51solo@163.com
  8. DocumentRoot f:/5d5i/bbs
  9. ServerName bbs.5d5i.com

  10. ServerAdmin 51solo@163.com
  11. DocumentRoot G:/WEB/bjbeyond
  12. ServerName www.bjbeyond.com

  13. ServerAdmin 51solo@163.com
  14. DocumentRoot E:/51solo
  15. ServerName soft.51solo.com

  16. ServerAdmin 51solo@163.com
  17. DocumentRoot E:/putao
  18. ServerName putao.5rap.com

  19. ServerAdmin 51solo@163.com
  20. DocumentRoot f:/5rap/bbs
  21. ServerName bbs.5rap.com

  22. ServerAdmin 51solo@163.com
  23. DocumentRoot f:/5rap/blog
  24. ServerName blog.5rap.com
复制代码


  1.   < virtualhost xxx.xxx.xxx.xxx>;
  2.      ServerAdmin 51solo@163.com  
  3.      DocumentRoot f:/5rap
  4.      ServerName www.5rap.com
  5.   < /virtualhost>;
  6.   < virtualhost xxx.xxx.xxx.xxx>;
  7.      ServerAdmin 51solo@163.com
  8.      DocumentRoot f:/5d5i
  9.      ServerName www.5d5i.com
  10.  < /virtualhost>;
  11. .....
复制代码

论坛徽章:
0
6 [报告]
发表于 2005-07-27 09:29 |只看该作者

用apache2+windows服务器的朋友进来,我有个问题想请教?

多谢楼上的指导,还是启动还是提示错误:
The Apache service named  reported the following error:
>;>;>; Syntax error on line 983 of C:/Apache2/conf/httpd.conf:     .
The Apache service named  reported the following error:
>;>;>; C:/Apache2/conf/httpd.conf:983: <VirtualHost>; was not closed.     .
The Apache service named  reported the following error:
>;>;>; Warning: DocumentRoot [F:/5rap.com/blog] does not exist     .
The Apache service named  reported the following error:
>;>;>; Warning: DocumentRoot [F:/5d5i.com] does not exist     .

论坛徽章:
0
7 [报告]
发表于 2005-07-27 10:12 |只看该作者

用apache2+windows服务器的朋友进来,我有个问题想请教?

DocumentRoot [F:/5rap.com/blog] does not exist     

晕, 目录不存在

论坛徽章:
0
8 [报告]
发表于 2005-07-27 10:45 |只看该作者

用apache2+windows服务器的朋友进来,我有个问题想请教?

原帖由 "goodloveboys"]com/blog 发表:
does not exist     

晕, 目录不存在

可是里面我没有定义这个目录啊
还有在定义
blog.5rap.com这个域名,访问网址打开是下面的

The requested URL / was not found on this server.


--------------------------------------------------------------------------------

Apache/2.0.54 (Win32) PHP/5.0.4 Server at blog.5rap.com Port 80

论坛徽章:
0
9 [报告]
发表于 2005-07-27 15:43 |只看该作者

用apache2+windows服务器的朋友进来,我有个问题想请教?

把你修改后的再贴出来。顺便贴出你的环境(IP)

论坛徽章:
0
10 [报告]
发表于 2005-07-28 09:42 |只看该作者

用apache2+windows服务器的朋友进来,我有个问题想请教?

<VirtualHost 61.135.136.213>;
ServerAdmin 51solo@163.com
DocumentRoot f:/5rap.com/blog
ServerName blog.5rap.com
</VirtualHost>;
昨天BLOG还不能访问,今天又加可以访问了
我想问一下DD,泛域名解析怎么做?
我在安装MYSQL时填的主机名是5rap.com
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP