XiunoBBS Nginx 配置文件 (含 Rewrite 规则)

Kevin 杂记 1,571 次浏览 128条评论

XiunoBBS,一个国产轻论坛程序。前些天安装试用了下(PHP 组件建议全部安上,不然运行环境容易有缺失),体验确实不错,简洁风格没有多余功能。分享个自用 Nginx Rewrite 配置文件,测试在 4.0.4 版本下工作正常,往后更高版本可能需自行评估是否还合用。

替换其中域名和 SSL 证书路径就可以使用了,默认设置了 HTTPS 重定向。其中 SSL 证书规则使用的 Certbot 工具生成。修改配置文件后别忘了运行nginx -s reload

server {
    listen       80;
    listen       [::]:80;
    listen       443 ssl http2;
    listen       [::]:443 ssl http2;
    server_name  example.com;
    return 301   https://www.example.com$request_uri;

    ssl_certificate            /etc/letsencrypt/live/example.com/fullchain.pem;
    ssl_certificate_key        /etc/letsencrypt/live/example.com/privkey.pem;
    ssl_session_cache          shared:SSL:10m;
    ssl_session_timeout        5m;
    ssl_protocols TLSv1        TLSv1.1 TLSv1.2;
    ssl_prefer_server_ciphers  on;
    ssl_ciphers                "ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS";
    ssl_dhparam                /etc/letsencrypt/ssl-dhparams.pem;
}

server {
    listen       80;
    listen       [::]:80;
    server_name  www.example.com;
    return 301   https://www.example.com$request_uri;
}

server {
    listen       443 ssl http2;
    listen       [::]:443 ssl http2;
    server_name  www.example.com;
    root         /var/www/example.com;
    index        index.php index.html index.htm default.php default.html default.htm;

    ssl_certificate            /etc/letsencrypt/live/example.com/fullchain.pem;
    ssl_certificate_key        /etc/letsencrypt/live/example.com/privkey.pem;
    ssl_session_cache          shared:SSL:10m;
    ssl_session_timeout        5m;
    ssl_protocols TLSv1        TLSv1.1 TLSv1.2;
    ssl_prefer_server_ciphers  on;
    ssl_ciphers                "ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS";
    ssl_dhparam                /etc/letsencrypt/ssl-dhparams.pem;

    location ~ [^/]\.php(/|$) {
        try_files $uri =404;
        fastcgi_pass              127.0.0.1:9000;
        fastcgi_index             index.php;
        include                   fastcgi.conf;
        fastcgi_intercept_errors  on;
    }

    rewrite "^(.*)/(.+?).htm$" $1/index.php?$2.htm last;
    if (!-e $request_filename) {
        rewrite  ^(.*)$  /index.php?s=$1  last;
    }

    location ~ .*\.(png|jpg|jpeg|gif|bmp)$ {
        expires  30d;
    }

    location ~ .*\.(js|css)?$ {
        expires  12h;
    }

    location ~ /.well-known {
        allow all;
    }

    location ~ /\. {
        deny all;
    }
}

XiunoBBS 支持的固定链接形式可查看.../conf/conf.default.php文件说明,默认是thread-create-id.htm

类似 XiunoBBS 的轻论坛国内还有不少,但更新频率 XiunoBBS 要好些。国外的则有 NodeBB(免费)、Discourse(付费)、Flarum(颜值高 & 简洁,就是更新太慢了)。

评论列表

  1. #1

    Bedroom sets Hollywood
    On portal our store customer waiting colossal assortment at price.Catalog contains purchase prices, rustic farmhouse decor data about types fittings possible alternatives complete modules. Absolutely any item furniture produced directly from factory manufacturer. Decrease quotations on cabin furniture obtained due to the absence of production retail space, for rent which necessary make payment and minimum state workers. No such costs enable to establish very affordable prices for all categories acquisitions.

  2. #2

    Hi, very nice website, cheers!
    ——————————————————
    Need cheap and reliable hosting? Our shared plans start at $10 for an year and VPS plans for $6/Mo.
    ——————————————————
    Check here: https://www.reliable-webhosting.com/

  3. #3

    buy viagra online with mastercard where to buy viagra with prescription where can i buy real viagra

  4. #4

    Thanks so much for the post.Really thank you! Great.day cialis next us

  5. #5

    Thank you for your blog post.Really thank you! Awesome.

  6. #6

    Thanks so much for the post.Much thanks again. Really Cool.

  7. #7

    Thanks so much for the post.Really thank you! Keep writing.cheap aldactone free viagra

  8. #8

    Thanks so much for the post.Much thanks again. Really Cool.

  9. #9

    Thanks a lot for the article post.Much thanks again. Fantastic.mail order cialis canada

  10. #10

    Thank you ever so for you post.Much thanks again.quebec cialis generic best

  11. #11

    Thanks! And thanks for sharing your great posts every week!try it viagra on women

  12. #12

    Thank you for your blog post.Really thank you! Awesome.follow link cialis dosagem

  13. #13

    Thanks so much for the post.Really thank you! Great.get free viagra samples

  14. #14

    Thank you ever so for you post.Much thanks again.

  15. #15

    Thank you ever so for you post.Much thanks again.

  16. #16

    buy prozac

  17. #17

    synthroid medication

  18. #18

    safest place to buy generic viagra online safe buy viagra online canada liquid viagra buy uk

  19. #19

    Thanks so much for the post.Really thank you! Keep writing.cheap business plan writing service

  20. #20

    Thanks a lot for the post.Really thank you! Much obliged.

  21. #21

    advair diskus otc

  22. #22

    Thank you for your blog post.Really thank you! Awesome.cialis 20 viagra

  23. #23

    tadalafil buy cheap

  24. #24

    buy propecia

  25. #25

    500 mg amoxicillin

  26. #26

    Thanks! And thanks for sharing your great posts every week!sildenafil india paypal

  27. #27

    amoxicillin price comparison

  28. #28

    buy diclofenac

  29. #29

    Thank you for your blog post.Really thank you! Awesome.

  30. #30

    amoxicillin 100 mg tablets

  31. #31

    Thanks so much for the post.Really thank you! Great.acheter viagra sur ne

  32. #32

    diclofenac 3 gel brand name

  33. #33

    Thanks for the article post.Really thank you! Great.https://viagrasupertreat.com/

  34. #34

    Thank you ever so for you post.Much thanks again.https://cialisdoitnow.com/

  35. #35

    cost of brand synthroid

  36. #36

    Thanks a lot for the post.Really thank you! Much obliged.https://cialistodo2020.com/

  37. #37

    Thanks for the article post.Really thank you! Great.cialis com

  38. #38

    Thanks for the article post.Really thank you! Great.generic cialis india

  39. #39

    Thanks a lot for the post.Really thank you! Much obliged.https://viagratodo20.com/

  40. #40

    Thanks so much for the post.Really thank you! Great.uk viagra no prescription

  41. #41

    Thanks so much for the post.Really thank you! Keep writing.https://viagrabigsale.com/

  42. #42

    Thanks so much for the post.Really thank you! Great.

  43. #43

    Thank you ever so for you post.Much thanks again.https://viagraonlinegfsd.com/

  44. #44

    Thanks a lot for the article post.Much thanks again. Fantastic.https://tadalafilforstrong.com/

  45. #45

    Thank you for your blog post.Really thank you! Awesome.https://tadalafilforstrong.com/

  46. #46

    Thank you ever so for you post.Much thanks again.viagra generic

  47. #47

    І’m really lovibg thе theme/design of yoᥙr site.

    Dо you ever run intⲟ any web browser compatibility problems?

    А handful οf my blog readers hɑve complained аbout
    my blog not w᧐rking correctly in Explorer but
    ⅼooks grеat in Safari. Ⅾo yoս һave any recommendations tߋ
    heⅼp fix thіs pгoblem?

    Allso visit mʏ site; inhouse pharmacy rating

  48. #48

    Thank you for your blog post.Really thank you! Awesome.

  49. #49

    Thanks so much for the post.Much thanks again. Really Cool.

  50. #50

    Thanks! And thanks for sharing your great posts every week!teva generic viagra name

  51. #51

    Thanks a lot for the article post.Much thanks again. Fantastic.buy viagra

  52. #52

    Thank you a lot for giving everyone an exceptionally breathtaking opportunity to read in detail from here. It is often very useful and also full of amusement for me personally and my office friends to search the blog not less than 3 times in 7 days to study the fresh issues you will have. And of course, I’m also certainly fulfilled with all the amazing principles served by you. Some 1 areas on this page are absolutely the simplest we have ever had.
    balenciaga http://www.balenciagas.us.com

  53. #53

    Thanks a lot for the article post.Much thanks again. Fantastic.https://viagracanadanews.com/

  54. #54

    Thanks! And thanks for sharing your great posts every week!cheap viagra

  55. #55

    Thanks a lot for the post.Really thank you! Much obliged.low prices brand viagra

  56. #56

    Thanks! And thanks for sharing your great posts every week!buy viagra online

  57. #57

    Thanks for the article post.Really thank you! Great.wirkung viagra oder cialis

  58. #58

    Thanks for the article post.Really thank you! Great.only today viagra paypal

  59. #59

    Thanks a lot for the article post.Much thanks again. Fantastic.discount viagra

  60. #60

    Thank you ever so for you post.Much thanks again.cialis

  61. #61

    Thank you ever so for you post.Much thanks again.cheap cialis online

  62. #62

    Thanks a lot for the post.Really thank you! Much obliged.acheter cialis québe

  63. #63

    My husband and i have been so more than happy when Jordan could finish off his survey because of the ideas he had when using the web pages. It’s not at all simplistic to simply choose to be freely giving strategies which usually other people may have been making money from. Therefore we consider we need the website owner to be grateful to for that. Those illustrations you made, the easy website menu, the relationships you will make it easier to create – it’s everything extraordinary, and it is aiding our son and our family reason why that content is cool, which is really indispensable. Thank you for all!
    moncler jackets http://www.monclerjackets.us

  64. #64

    Thanks so much for the post.Really thank you! Keep writing.cialis 5 mg blood pressure

  65. #65

    Thanks a lot for the article post.Much thanks again. Fantastic.crystal report writer

  66. #66

    Thanks so much for the post.Much thanks again. Really Cool.effet cialis naturel

  67. #67

    Thanks a lot for the post.Really thank you! Much obliged.research papers for sale online

  68. #68

    Thanks a lot for the article post.Much thanks again. Fantastic.school papers for sale school papers for sale

  69. #69

    Thank you a lot for giving everyone an exceptionally superb chance to discover important secrets from here. It is often so great and as well , packed with amusement for me and my office fellow workers to visit your blog at the very least thrice in one week to read the fresh tips you have got. Of course, I’m also certainly impressed considering the astonishing knowledge served by you. Certain 3 points on this page are in truth the most effective we have ever had.
    curry 7 shoes http://www.curry7.us

  70. #70

    Thanks a lot for the article post.Much thanks again. Fantastic.viagra in australia for sale.

  71. #71

    Thanks a lot for the article post.Much thanks again. Fantastic.where do i buy generic viagra

  72. #72

    Thanks so much for the post.Really thank you! Keep writing.cheap generic viagra reviews

  73. #73

    Thanks so much for the post.Really thank you! Keep writing.viagra

  74. #74

    Thank you for this post. Its very inspiring.online viagra

  75. #75

    Needed to create you this little observation in order to thank you so much once again for your lovely principles you have shared here. This has been really extremely open-handed of people like you to present unhampered what most of us might have made available as an e-book to make some profit on their own, certainly now that you could possibly have tried it if you desired. These guidelines additionally acted to be a easy way to fully grasp that other individuals have the identical dreams just as my own to grasp a good deal more around this issue. I’m certain there are numerous more fun opportunities ahead for individuals that look over your blog post.
    nike air max 270 http://www.airmax270.us.com

  76. #76

    Thanks a lot for the article post.Much thanks again. Fantastic.buy viagra

  77. #77

    Thanks! And thanks for sharing your great posts every week!viagra online

  78. #78

    What’s up to every one, because I am truly eager of reading this web site’s post to be updated regularly.
    바카라사이트

  79. #79

    hello! I simply wish to give you a huge thumbs up for your great info you have got here on this post. I am returning to your website for more soon.
    카지노사이트

  80. #80

    I gotta bookmark this website it seems handy very helpful
    바카라사이트

  81. #81

    Hellо tһеre! I know thijs is somewhat off topic Ьut I was wondering whicһ bloց platfoгm are you using for this site?
    카지노사이트

  82. #82

    Appreciate you sharing, great blog article. Great..kindly visit us
    바카라사이트

  83. #83

    Thank you ever so for you post.Much thanks again.http://viagrabytwfa.com/

  84. #84

    Thanks a lot for the post.Really thank you! Much obliged.generic viagra online

  85. #85

    Thank you for your blog post.Really thank you! Awesome.viagra

  86. #86

    Thanks so much for the post.Really thank you! Great.online viagra

  87. #87

    Thank you for your blog post.Really thank you! Awesome.generic viagra

  88. #88

    Thanks so much for the post.Really thank you! Great.http://viagrabytwfa.com/

  89. #89

    Thank you for your blog post.Really thank you! Awesome.http://viagrabytwfa.com/

  90. #90

    Thanks so much for the post.Really thank you! Great.viagra for sale cheap online

  91. #91

    Thanks! And thanks for sharing your great posts every week!online viagra

  92. #92

    Thanks! And thanks for sharing your great posts every week!buy viagra

  93. #93

    Thanks so much for the post.Really thank you! Keep writing.viagra online

  94. #94

    Thanks! And thanks for sharing your great posts every week!generic viagra online

  95. #95

    Thanks so much for the post.Really thank you! Keep writing.cheap viagra

  96. #96

    Thanks so much for the post.Really thank you! Great.viagra

  97. #97

    Thanks a lot for the post.Really thank you! Much obliged.follow link viagra low cost

  98. #98

    Thanks so much for the post.Really thank you! Keep writing.viagra generic

  99. #99

    Thank you ever so for you post.Much thanks again.online cialis

  100. #100

    I just wanted to compose a simple comment to express gratitude to you for some of the wonderful solutions you are giving out on this website. My long internet search has finally been rewarded with sensible content to write about with my company. I would declare that many of us website visitors are undoubtedly lucky to live in a fabulous place with so many brilliant professionals with insightful points. I feel extremely grateful to have seen your entire web page and look forward to some more brilliant moments reading here. Thanks once again for all the details.
    converse shoes http://www.converseshoesoutlet.com

  101. #101

    Thanks for the article post.Really thank you! Great.cialisis for man

  102. #102

    Thanks so much for the post.Really thank you! Keep writing.generic cialis

  103. #103

    I would like to voice my passion for your kindness supporting folks that actually need guidance on this issue. Your special commitment to getting the message all through came to be exceptionally helpful and have in every case made others just like me to realize their aims. Your entire informative help entails a whole lot to me and even further to my office colleagues. Warm regards; from each one of us.
    retro jordans http://www.retrojordanssale.com

  104. #104

    Thanks a lot for the article post.Much thanks again. Fantastic.i use it cialis 25mg

  105. #105

    Thanks a lot for the post.Really thank you! Much obliged.https://buyviatoday.com/

  106. #106

    I would like to express my respect for your kindness supporting men and women who really want help on the concern. Your real dedication to getting the solution throughout became amazingly significant and have specifically encouraged most people just like me to achieve their pursuits. Your own helpful information indicates this much a person like me and somewhat more to my colleagues. Thanks a lot; from everyone of us.
    kevin durant shoes http://www.kd-10.us

  107. #107

    Thanks a lot for the post.Really thank you! Much obliged.http://viagener2020.com/

  108. #108

    Thanks a lot for the post.Really thank you! Much obliged.effet viagra libido

  109. #109

    Thanks so much for the post.Really thank you! Keep writing.cheap viagra

  110. #110

    Thank you for your blog post.Really thank you! Awesome.http://viagener2020.com/

  111. #111

    Thanks! And thanks for sharing your great posts every week!

  112. #112

    Thank you for your blog post.Really thank you! Awesome.

  113. #113

    Thanks! And thanks for sharing your great posts every week!

  114. #114

    Thanks a lot for the post.Really thank you! Much obliged.viagra without doctor prescription

  115. #115

    Thank you for all your effort on this blog. Gloria really likes carrying out investigation and it’s really easy to understand why. All of us hear all regarding the dynamic means you make worthwhile guidelines by means of the blog and even increase participation from the others about this content then our daughter is without a doubt understanding a whole lot. Enjoy the rest of the new year. You’re carrying out a powerful job.
    golden goose http://www.goldengoose.us.com

  116. #116

    Es teilte mit, dass 44.895 Kontakte identifiziert wurden, gegenüber fast 32.000 in der vergangenen Woche.

    Anhand der Daten von 350 COVID-19-Patienten und fast
    2.000 ihrer engen Kontakte in der Stadt Guangzhou, China, stellten die Forscher aus
    den USA und China fest, dass der durchschnittliche Patient zwar
    nur eine 2,4-prozentige Chance hatte, jemanden anzustecken,
    mit dem er nicht zusammenlebte, aber diese Zahl sprang auf 17,1 Prozent – etwa jeder sechste – unter seinen Mitbewohnern.

    Also visit my blog – jjnormal.wordpress.com

  117. #117

    Thank you for your blog post.Really thank you! Awesome.cialis

  118. #118

    Wonderful beat ! I would like to apprentice even as you amend
    your website, how could i subscribe for a blog site?
    The account helped me a appropriate deal. I have been tiny bit familiar of this your broadcast
    provided shiny transparent idea

    my web page jjnormal.wordpress.com

  119. #119

    Thank you ever so for you post.Much thanks again.online viagra reviews

  120. #120

    Thanks so much for the post.Really thank you! Great.http://viagrakiqw.com/

  121. #121

    Thanks so much for the post.Really thank you! Great.viagra online pharmacy

  122. #122

    Thanks a lot for the article post.Much thanks again. Fantastic.http://viagrakiqw.com/

  123. #123

    Thanks so much for the post.Much thanks again. Really Cool.

  124. #124

    Needed to post you one very little observation to help thank you so much as before for the stunning advice you’ve provided in this article. It was quite tremendously generous with people like you to deliver unhampered exactly what most people could have distributed as an ebook to end up making some money on their own, notably now that you could possibly have tried it in case you decided. Those creative ideas in addition worked like the great way to be sure that the rest have the identical passion just like mine to know the truth a great deal more when considering this condition. I know there are thousands of more pleasant times up front for many who take a look at your site.
    nike air max 270 http://www.air-max270.com

  125. #125

    Thanks so much for the post.Much thanks again. Really Cool.

  126. #126

    Thank you ever so for you post.Much thanks again.cheap prescription viagra

  127. #127

    Thanks so much for the post.Really thank you! Keep writing.https://tadalafilforstrong.com/

  128. #128

    Thanks so much for the post.Really thank you! Great.we like it online cialis sale

发表评论

电邮地址用于 Gravatar 头像显示,不会被公开可见。