textkirbynginx配置(代码片段)

author author     2022-12-01     128

关键词:

  #######################
  #######################
  # KIRBY-CONFIGURATION #

  # block content
  location ~ ^/content/(.*).(txt|md|mdown)$
  
    rewrite ^/content/(.*).(txt|md|mdown)$ /error redirect;
  

  # block all files in the site folder from being accessed directly
  location ~ ^/site/(.*)$
  
    rewrite ^/site/(.*)$ /error redirect;
  

  # block all files in the kirby folder
  location ~ ^/kirby/(.*)$
  
    rewrite ^/kirby/(.*)$ /error redirect;
  

  # site links
  location /
  
    try_files $uri $uri/ /index.php?$uri&$args;
    
    # cache static assets
    if ($request_uri ~ \.(jpg|jpeg|png|gif|ico|svg|woff|ttf|woff2|otf|xml|pdf|eot|json)$) 
      expires 1M;
      access_log off;
      add_header Cache-Control "public";
      add_header Access-Control-Allow-Origin *;
    
  

  # deny access to .htaccess files
  location ~ /\.ht
  
    deny all;
  

  #######################
  #######################

csharp配置文件配置(代码片段)

查看详情

textmysql配置文件配置(代码片段)

查看详情

textvim配置(代码片段)

查看详情

textssh配置(代码片段)

查看详情

textgit配置(代码片段)

查看详情

javascriptvue配置(代码片段)

查看详情

javascriptlaravelmix配置(代码片段)

查看详情

markdownestereotipos配置(代码片段)

查看详情

javaswagger配置(代码片段)

查看详情

csharpautofac配置(代码片段)

查看详情

csharpswashbuckle配置(代码片段)

查看详情

sqlairwatch配置(代码片段)

查看详情

sqlcreativeretailmdm配置(代码片段)

查看详情

jsonvscnodejs配置(代码片段)

查看详情

jsonstylelint配置(代码片段)

查看详情

jsonbootstrapcustomizer配置(代码片段)

查看详情

initmux配置(代码片段)

查看详情

initmux配置(代码片段)

查看详情