Skip to content
TheChatArchiveThe Chat Archive
gpt-3.5-turbo-0301· OpenAIAi2 WildChat-4.8M (AI2)

写一个nginx缩略图rewrite重写配置 根据匹配规则 /pc/storage/topic 重定向到 index.php

  1. User

    写一个nginx缩略图rewrite重写配置 根据匹配规则 /pc/storage/topic 重定向到 index.php

  2. Assistant

    location /pc/storage/topic { rewrite ^/pc/storage/topic/(.)/(.)/(.)/(.)/(.)/(.)/(.)/(.)/(.)/(.)/(.)/(.)/(.)/(.)/(.)/(.)/(.)/(.)/(.)/(.)/(.)/(.)/(.)/(.)/(.)/(.)/(.)/(.)/(.)/(.)/(.)/(.)/(.)/(.)/(.)/(.)/(.)/(.)/(.)/(.)/(.)/(.)/(.)/(.)/(.*).jpg/index.php?path= /index.php?path=1/2/2/3/4/4/5/6/6/7/8/8/9/10/10/11/12/12/13/14/14/15/16/16/17/18/18/19/20/20/21/22/22/23/24/24/25/26/26/27/28/28/29/30/30/31/32/32/33/34/34/35/36/36/37/38/38/39&size=40x40x41&quality=42&watermark=43&gravity=44&format=45 last; }

  3. User

    写一个nginx缩略图rewrite重写配置 根据匹配规则 /pc/storage/topic/xxx.jpg!200!200 重定向到 index.php?s=thumb

  4. Assistant

    location /pc/storage/topic { rewrite ^/pc/storage/topic/(.).jpg!(.)!(.*) /index.php?s=thumb&path=1&width=2&height=3 last; }