全球主机交流论坛

标题: 求 apache 转 nginx [打印本页]

作者: Ultratude    时间: 2013-7-3 15:31
标题: 求 apache 转 nginx
  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>
复制代码
帮别人搞的。谢谢了。
作者: shuir    时间: 2013-7-3 15:31
提示: 作者被禁止或删除 内容自动屏蔽
作者: 晓白    时间: 2013-7-3 15:36
提示: 作者被禁止或删除 内容自动屏蔽
作者: xiao勇    时间: 2013-7-3 15:39
上次看到一个可以自动转的网站
作者: 羞涩    时间: 2013-7-3 15:45
wordpress 直接有现成的 lnmp.org
作者: 东方星雨    时间: 2013-7-3 15:47
xiao勇 发表于 2013-7-3 15:39
上次看到一个可以自动转的网站

http://www.anilcetin.com/convert-apache-htaccess-to-nginx/
作者: orvice    时间: 2013-7-3 16:02
东方星雨 发表于 2013-7-3 15:47
http://www.anilcetin.com/convert-apache-htaccess-to-nginx/

Mark





欢迎光临 全球主机交流论坛 (https://www.91ai.net/) Powered by Discuz! X3.4