win+apache网站打开很慢的解决笔记

为了图方便,直接把wamp的vhost配置文件复制到新apache2.2.25上,结果打开静态页速度都非常慢。

<VirtualHost *:80>
    ServerAdmin www.fuck2.com    
    DocumentRoot "d:/mysite/fuck2.com"    
    
    ServerName www.fuck2.com
    ServerAlias fuck2.com    
    
    <Directory "d:/mysite/fuck2.com/">
        Options FollowSymLinks
        AllowOverride All
        Order deny,allow
        Deny from allow
        #Require all granted  apache2.4*
    </Directory>
    
    ErrorLog "logs/www.fuck2.com-error.log"
    CustomLog "logs/www.fuck2.com-access.log" common
    

</VirtualHost>

 检查核对后更正:

<Directory "d:/htdocs/www.fuck2.com">
    Options FollowSymLinks
    AllowOverride All
        
    Order deny,allow
        Allow from all
        
</Directory>

接下来就非常正常了。

posted @ 2014-11-19 20:23  工程内业编程  阅读(301)  评论(0编辑  收藏  举报