last – 基本上都用这个Flag。
break – 中止Rewirte,不在继续匹配
redirect – 返回临时重定向的HTTP状态302
permanent – 返回永久重定向的HTTP状态301

另外,有个东西很关键,曾经折腾我好几个小时才搞定,就是Nginx里面配置 {m,n} 这样的正则规则的时候,条件必须加上双引号,否则总是报错无法通过,官方文档里面真是很难找到这些东西,很晕。

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
5 Responses
  1. finalbsd says:


  2. Michael says:

    [Comment ID #29689 Will Be Quoted Here]

    放心使用吧,youtube使用的是lighttpd,毫无问题,国内外若干网站使用着,Nginx经过实际测试,不会比lighttpd差,都可以放心使用,从我的经验来看,都比apache好使 🙂 也许是因为我对apache 掌握不够透彻才有此片面的看法。

  3. 25hours says:


  4. lpfrx says:

    如果 nginx 有 apache 的.htacess文件就方便了,不用每次改规则都要 restart

  5. ning says:


  6. Heya this is somewhat of off topic but I was wondering if blogs use WYSIWYG editors or if you have to manually code with HTML.
    I’m starting a blog soon but have no coding know-how so I wanted to get advice from someone with experience.
    Any help would be greatly appreciated!

  7. 9282402755 says:

    Way cool! Some extremely valid points! I appreciate you writing this article and also the rest of the
    site is extremely good.

  8. Thanks for the marvelous posting! I actually enjoyed reading it, you’re a great author.
    I will always bookmark your blog and definitely will come back sometime soon. I want to
    encourage you to continue your great writing, have a nice morning!

  9. sex says:

    Heya exceptional blog! Does running a blog such as this
    take a great deal of work? I’ve virtually no expertise
    in computer programming but I was hoping to start my own blog in the near future.

    Anyway, should you have any suggestions or techniques for new blog owners
    please share. I know this is off subject nevertheless I simply wanted to ask.

  10. Hi! This is kind of off topic but I need some guidance from an established blog.
    Is it very hard to set up your own blog? I’m not very techincal but
    I can figure things out pretty fast. I’m thinking about making
    my own but I’m not sure where to start. Do you have any points or suggestions?

  11. viagra says:

    I just like the helpful information you provide to your articles.

    I’ll bookmark your weblog and check again here regularly.
    I am somewhat certain I will learn many new stuff proper right here!
    Best of luck for the next!

  12. Excellent beat ! I wish to apprentice whilst you amend your website, how
    could i subscribe for a blog web site? The account helped me a appropriate deal.
    I were tiny bit acquainted of this your broadcast offered shiny transparent idea

  13. each time i used to read smaller content that also clear their motive, and that is also happening with this paragraph which I am reading here.

  14. Hi there, I think your web site might be having web browser compatibility issues.
    When I look at your blog in Safari, it looks fine however,
    when opening in Internet Explorer, it has some overlapping issues.
    I just wanted to give you a quick heads up! Aside from that, fantastic blog!

  15. Excellent way of explaining, and nice article to obtain facts concerning my
    presentation focus, which i am going to present in university.

  16. I always used to read piece of writing in news papers but now as I am a user
    of internet therefore from now I am using net for
    articles, thanks to web.

  17. Hey! Would you mind if I share your blog with my myspace group?
    There’s a lot of people that I think would really appreciate your content.
    Please let me know. Thank you

  18. cbd for sale says:

    Hi there this is kinda of off topic but I was wanting to know if
    blogs use WYSIWYG editors or if you have to manually code with HTML.

    I’m starting a blog soon but have no coding expertise so I wanted to get guidance from someone
    with experience. Any help would be greatly appreciated!

Leave a Reply

Your email address will not be published. Required fields are marked *

To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Anti-spam image