Home  >  Article  >  Backend Development  >  服务器响应慢解决方法

服务器响应慢解决方法

WBOY
WBOYOriginal
2016-06-13 13:08:351122browse

服务器响应慢
在服务器上配置虚拟主机

因为是单IP的

NameVirtualHost *:88


  DocumentRoot "D:\Lia\one"
  ServerName local.one.com  
 
  Options Indexes FollowSymLinks
  IndexOptions FancyIndexing FoldersFirst NameWidth=* VersionSort XHTML
  AllowOverride All
  Order allow,deny
  Allow from all
 




  DocumentRoot "D:\Lia\two"
  ServerName local.two.com  
 
  Options Indexes FollowSymLinks
  IndexOptions FancyIndexing FoldersFirst NameWidth=* VersionSort XHTML
  AllowOverride All
  Order allow,deny
  Allow from all
 



配置是这样的,本地测试没问题,
但是放在服务器上,同样的配置方法 响应的就特别慢,不知道是为什么

------解决方案--------------------
你查一下域名解析速度如何,也就是dns服务器解析域名成为ip地址的这段时间用了多久呢?
------解决方案--------------------
放个静态文件测试一下呢?
------解决方案--------------------
响应慢应该不会跟域名的分配有什么关系。
有两个可能一个就是sibang说的域名解析
还有一个就是关系到你的代码了

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn