level 1
lotusnand
楼主
请高手指点
.htaccess添加了:
mod_gzip:
<ifModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
<ifModule>
mod_deflate:
<ifmodule mod_deflate.c>
DeflateCompressionLevel 6 #压缩率, 6是建议值.
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/atom_xml
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/x-httpd-php
AddOutputFilterByType DEFLATE image/svg+xml
</ifmodule>
apache开启了模块,错误日志如下:
[Mon Jul 14 16:54:15.407200 2014] [mpm_winnt:notice] [pid 7736:tid 432] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Mon Jul 14 16:54:17.408200 2014] [mpm_winnt:notice] [pid 9876:tid 332] AH00364: Child: All worker threads have exited.
[Mon Jul 14 16:54:17.498200 2014] [mpm_winnt:notice] [pid 7736:tid 432] AH00430: Parent: Child process 9876 exited successfully.
[Mon Jul 14 16:54:20.028200 2014] [mpm_winnt:notice] [pid 6496:tid 432] AH00455: Apache/2.4.4 (Win32) PHP/5.4.16 configured -- resuming normal operations
[Mon Jul 14 16:54:20.029200 2014] [mpm_winnt:notice] [pid 6496:tid 432] AH00456: Server built: Feb 23 2013 13:07:34
[Mon Jul 14 16:54:20.029200 2014] [core:notice] [pid 6496:tid 432] AH00094: Command line: 'D:\\wamp\\bin\\apache\\apache2.4.4\\bin\\httpd.exe -d D:/wamp/bin/apache/Apache2.4.4'
[Mon Jul 14 16:54:20.034200 2014] [mpm_winnt:notice] [pid 6496:tid 432] AH00418: Parent: Created child process 11480
AH00548: NameVirtualHost has no effect and will be removed in the next release D:/wamp/bin/apache/Apache2.4.4/conf/httpd.conf:542
[Mon Jul 14 16:54:20.669200 2014] [mpm_winnt:notice] [pid 11480:tid 332] AH00354: Child: Starting 150 worker threads.
2014年07月14日 09点07分
1
.htaccess添加了:
mod_gzip:
<ifModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
<ifModule>
mod_deflate:
<ifmodule mod_deflate.c>
DeflateCompressionLevel 6 #压缩率, 6是建议值.
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/atom_xml
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/x-httpd-php
AddOutputFilterByType DEFLATE image/svg+xml
</ifmodule>
apache开启了模块,错误日志如下:
[Mon Jul 14 16:54:15.407200 2014] [mpm_winnt:notice] [pid 7736:tid 432] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Mon Jul 14 16:54:17.408200 2014] [mpm_winnt:notice] [pid 9876:tid 332] AH00364: Child: All worker threads have exited.
[Mon Jul 14 16:54:17.498200 2014] [mpm_winnt:notice] [pid 7736:tid 432] AH00430: Parent: Child process 9876 exited successfully.
[Mon Jul 14 16:54:20.028200 2014] [mpm_winnt:notice] [pid 6496:tid 432] AH00455: Apache/2.4.4 (Win32) PHP/5.4.16 configured -- resuming normal operations
[Mon Jul 14 16:54:20.029200 2014] [mpm_winnt:notice] [pid 6496:tid 432] AH00456: Server built: Feb 23 2013 13:07:34
[Mon Jul 14 16:54:20.029200 2014] [core:notice] [pid 6496:tid 432] AH00094: Command line: 'D:\\wamp\\bin\\apache\\apache2.4.4\\bin\\httpd.exe -d D:/wamp/bin/apache/Apache2.4.4'
[Mon Jul 14 16:54:20.034200 2014] [mpm_winnt:notice] [pid 6496:tid 432] AH00418: Parent: Created child process 11480
AH00548: NameVirtualHost has no effect and will be removed in the next release D:/wamp/bin/apache/Apache2.4.4/conf/httpd.conf:542
[Mon Jul 14 16:54:20.669200 2014] [mpm_winnt:notice] [pid 11480:tid 332] AH00354: Child: Starting 150 worker threads.