Xampp Apache服务器没有响应请求

时间:2015-08-05 10:30:10

标签: windows-8 xampp apache2.4

我在Windows 8 64位操作系统上安装了Xampp服务器(xampp-win32-5.6.8-0-VC11-installer)。我在HelloWorld目录中部署了htdocs应用程序文件夹,并在httpd-vhosts.conf文件中添加了虚拟主机,如下所示

 <VirtualHost localhost:80>
  DocumentRoot C:/xampp/htdocs/
  RewriteEngine On
  ProxyRequests Off
  ServerName localhost
  <Directory C:/xampp/htdocs/Aasifeweb/app/>
   Require all granted
   Allow from all
</Directory>
  <Location />
  ProxyPass   http://localhost/Aasifeweb/app/#/home
  ProxyPassReverse http://localhost/Aasifeweb/app/#/home
  ProxyPassReverseCookiePath  / http://localhost/Aasifeweb/app/#/home
  </Location>
</VirtualHost>

Apache错误日志文件

[Fri Aug 07 19:23:26.149126 2015] [ssl:warn] [pid 2684:tid 448] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Fri Aug 07 19:23:26.200160 2015] [core:warn] [pid 2684:tid 448] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Fri Aug 07 19:23:26.268206 2015] [ssl:warn] [pid 2684:tid 448] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Fri Aug 07 19:23:26.298225 2015] [mpm_winnt:notice] [pid 2684:tid 448] AH00455: Apache/2.4.12 (Win32) OpenSSL/1.0.1l PHP/5.6.8 configured -- resuming normal operations
[Fri Aug 07 19:23:26.298225 2015] [mpm_winnt:notice] [pid 2684:tid 448] AH00456: Apache Lounge VC11 Server built: Jan 28 2015 16:48:40
[Fri Aug 07 19:23:26.298225 2015] [core:notice] [pid 2684:tid 448] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Fri Aug 07 19:23:26.301227 2015] [mpm_winnt:notice] [pid 2684:tid 448] AH00418: Parent: Created child process 3576
AH00548: NameVirtualHost has no effect and will be removed in the next release C:/xampp/apache/conf/extra/httpd-vhosts.conf:20
[Fri Aug 07 19:23:26.763535 2015] [ssl:warn] [pid 3576:tid 448] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Fri Aug 07 19:23:26.885617 2015] [ssl:warn] [pid 3576:tid 448] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Fri Aug 07 19:23:26.918638 2015] [mpm_winnt:notice] [pid 3576:tid 448] AH00354: Child: Starting 150 worker threads.
[Fri Aug 07 19:23:29.637450 2015] [mpm_winnt:error] [pid 3576:tid 4852] AH00326: Server ran out of threads to serve requests. Consider raising the ThreadsPerChild setting

当我将虚拟主机配置添加到httpd-vhosts.conf文件时,会发生此问题。当我删除虚拟主机时,服务器似乎响应。部署的应用程序使用angular-js框架

编写

重要:请求似乎是一次又一次追加资源路径。但是,我不确定为什么会这样?

GET /Aasifeweb/app/%23/homeAasifeweb/app/%23/homeAasifeweb/app/%23/homeAasifeweb/app/%23

当我在浏览器中点击http://localhost时,它会继续加载。互联网上有很多解决方案,但没有什么对我有用。

我试图解决问题的事情

  • 我完成了netsh winsock reset
  • 我改变了端口 apache server
  • 我已禁用Skype和防病毒软件

请告诉我您的意见

1 个答案:

答案 0 :(得分:1)

我根本不必使用ProxyPass。我只需要指向目录和Angularjs - ng-route负责页面路由。

<VirtualHost localhost:80>
  DocumentRoot C:/xampp/htdocs/Aasifeweb/app
</VirtualHost>
相关问题