全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 1815|回复: 6

[Windows VPS] 求 apache 转 nginx

[复制链接]
发表于 2013-7-3 15:31:34 | 显示全部楼层 |阅读模式
  1. <IfModule mod_rewrite.c>
  2. RewriteEngine On
  3. RewriteBase /
  4. RewriteCond %{REQUEST_FILENAME} !-f
  5. RewriteCond %{REQUEST_FILENAME} !-d
  6. RewriteRule . /index.php [L]
  7. </IfModule>

  8. <IfModule php5_module>
  9. php_flag session.auto_start 0
  10. </IfModule>

  11. <IfModule mod_expires.c>
  12. ExpiresActive On
  13. ExpiresDefault A600
  14. ExpiresByType image/x-icon A2592000
  15. ExpiresByType image/gif A2592000
  16. ExpiresByType image/png A2592000
  17. ExpiresByType image/jpeg A2592000
  18. ExpiresByType text/plain A86400
  19. ExpiresByType application/x-shockwave-flash A2592000
  20. ExpiresByType video/x-flv A2592000
  21. ExpiresByType application/pdf A2592000
  22. ExpiresByType text/html A600
  23. </IfModule>

  24. <ifmodule mod_deflate.c>
  25. AddOutputFilter DEFLATE php js css
  26. </ifmodule>
复制代码
帮别人搞的。谢谢了。
发表于 2013-7-3 15:31:55 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
发表于 2013-7-3 15:36:02 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
发表于 2013-7-3 15:39:48 | 显示全部楼层
上次看到一个可以自动转的网站
发表于 2013-7-3 15:45:40 | 显示全部楼层
wordpress 直接有现成的 lnmp.org
发表于 2013-7-3 15:47:05 | 显示全部楼层
xiao勇 发表于 2013-7-3 15:39
上次看到一个可以自动转的网站

http://www.anilcetin.com/convert-apache-htaccess-to-nginx/
发表于 2013-7-3 16:02:31 | 显示全部楼层
东方星雨 发表于 2013-7-3 15:47
http://www.anilcetin.com/convert-apache-htaccess-to-nginx/

Mark
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-5-1 11:10 , Processed in 0.063862 second(s), 9 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表