apache中81端口可以访问,80端口404 not found
2014-06-09 15:53
429 查看
wamp环境中,81端口正常访问,但80却出现404错误。(不是因为其他软件占用80端口造成的,那样的话应该就不是404错误了)
最好的办法是打开appache的错误日志,即logs/apache_error.log
发现了如下错误
即有很多错误,如e:/x/mac/没找到,于是乎还是要看httpd.conf配置文件
看看有没有包含其他文件include
不出所料,发现这句。
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
又包含了这个文件,内容是:
<VirtualHost *:80>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot "E:/php/"
ServerName dummy-host.example.com
ServerAlias www.dummy-host.example.com
ErrorLog "logs/dummy-host.example.com-error.log"
CustomLog "logs/dummy-host.example.com-access.log" common
<Directory "E:/php/">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
原来这里占用了80端口。。。。于是乎改之,或删之。。。
apache service restart即可。。
最好的办法是打开appache的错误日志,即logs/apache_error.log
发现了如下错误
[Mon Jun 09 15:40:07.210623 2014] [mpm_winnt:notice] [pid 6540:tid 568] AH00354: Child: Starting 150 worker threads. [Mon Jun 09 15:43:48.322935 2014] [mpm_winnt:notice] [pid 9444:tid 628] AH00422: Parent: Received shutdown signal -- Shutting down the server. [Mon Jun 09 15:43:50.322937 2014] [mpm_winnt:notice] [pid 6540:tid 568] AH00364: Child: All worker threads have exited. Failed loading c:/wamp/bin/php/php53/ext/ZendLoader.dll [Mon Jun 09 15:43:50.352937 2014] [mpm_winnt:notice] [pid 9444:tid 628] AH00430: Parent: Child process 6540 exited successfully. Failed loading c:/wamp/bin/php/php53/ext/ZendLoader.dll AH00112: Warning: DocumentRoot [E:/x/mac/] does not exist AH00112: Warning: DocumentRoot [E:/x/mac/vlc/appcheck3/] does not exist [Mon Jun 09 15:43:51.964940 2014] [mpm_winnt:notice] [pid 2124:tid 636] AH00455: Apache/2.4.4 (Win32) PHP/5.3.27 configured -- resuming normal operations [Mon Jun 09 15:43:51.974940 2014] [mpm_winnt:notice] [pid 2124:tid 636] AH00456: Server built: Feb 23 2013 13:07:34 [Mon Jun 09 15:43:51.974940 2014] [core:notice] [pid 2124:tid 636] AH00094: Command line: 'c:\\wamp\\bin\\apache\\apache2.4.4\\bin\\httpd.exe -d C:/wamp/bin/apache/Apache2.4.4' [Mon Jun 09 15:43:51.974940 2014] [mpm_winnt:notice] [pid 2124:tid 636] AH00418: Parent: Created child process 4676 AH00112: Warning: DocumentRoot [E:/x/mac/] does not exist AH00112: Warning: DocumentRoot [E:/x/mac/vlc/appcheck3/] does not exist AH00112: Warning: DocumentRoot [E:/x/mac/] does not exist AH00112: Warning: DocumentRoot [E:/x/mac/vlc/appcheck3/] does not exist [Mon Jun 09 15:43:53.524942 2014] [mpm_winnt:notice] [pid 4676:tid 604] AH00354: Child: Starting 150 worker threads.
即有很多错误,如e:/x/mac/没找到,于是乎还是要看httpd.conf配置文件
看看有没有包含其他文件include
不出所料,发现这句。
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
又包含了这个文件,内容是:
<VirtualHost *:80>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot "E:/php/"
ServerName dummy-host.example.com
ServerAlias www.dummy-host.example.com
ErrorLog "logs/dummy-host.example.com-error.log"
CustomLog "logs/dummy-host.example.com-access.log" common
<Directory "E:/php/">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
原来这里占用了80端口。。。。于是乎改之,或删之。。。
apache service restart即可。。
相关文章推荐
- Jsp和PHP共用80端口整合Apache和Tomcat(访问时无需加端口号)
- win7开放80端口支持局域网访问apache
- Linux下查询80端口被哪些IP访问连接,以及查询异常连接IP地址可以封掉异常IP
- 服务器架构--------iis与Apache共存搭建(都可以使用域名访问,而不带后面的:80,90等)
- Apache 使用localhost(127.0.01 )可以访问,但是使用本机IP(局域网)不能访问的解决办法
- 分享一个 Nginx + Apache 公用 80 端口的配置方案
- apache 80 端口被占用无法启动的一次排除经历
- linux下使用apache http server 连接 tomcat 达到使用直接apache一个服务端口就可访问php和jsp
- 在Silverlight 2 beta 2 中访问webservice 时,出现“The remote server returned an unexpected response: (404) Not Found”的解决办法
- Apache 127.0.0.1可以访问,使用本机IP(局域网)不能访问解决方法
- Apache和迅雷对于80端口冲突的解决方案
- 应用apache+tomcat的方式,是否可以支持3000人同时在线访问
- Linux下启动apache报错:80端口已占用
- windows 下iis与apache共存技术(IIS的网站用非80端口,也可以不用加端口号访问
- Apache 使用localhost(127.0.01)可以访问 但是使用本机IP(局域网)不能访问
- 在Silverlight 2 中访问webservice 时,出现“The remote server returned an unexpected response: (404) Not Found”的解决办法
- 安装apache时80端口被占用的解决方案(Windows)
- Apache整合IIS通用80端口
- apache服务器基于ip以及基于端口的虚拟主机访问