您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 

21 行
442 B

  1. server {
  2. listen 80 default_server;
  3. root /var/www/wx;
  4. index index.php index.html index.htm index.nginx-debian.html;
  5. autoindex on;
  6. server_name wx.home;
  7. location / {
  8. try_files $uri $uri/ =404;
  9. }
  10. location ~ \.php$ {
  11. include snippets/fastcgi-php.conf;
  12. fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
  13. }
  14. # Rewrite the old path yyyy/mm/dd/ to /images/
  15. rewrite "^/image/\d{4}/\d{2}/\d{2}/(.+)$" /images/$1 permanent
  16. }