zoukankan      html  css  js  c++  java
  • mediawikide

    wiki.conf

    server
      {
        listen       80;
        server_name  wiki.talkvip.cn;
        index index.html index.htm index.php;
        root  /www/wiki/mediawiki-1.28.0;
    
        location ~ /.svn/ {
        deny all;
        }
    
        #rewrite ^/$ /?user=talkvip last;
    
        location / {
        rewrite ^/$ /index.php last;
        rewrite ^/(?!index.php|index.html|extensions|images|public|robots.txt)(.*)$ /index.php/$1 last;
        }
    
       location ~ .php {
                    fastcgi_pass 127.0.0.1:9002;
                    fastcgi_index index.php;
                    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                    include fastcgi_params;
        }
    
        location ~/uploads/.*.(php|php5)?$ {
            deny all;
        }
        location ~/public/.*.(php|php5)?$ {
            deny all;
        }
    
       location ~ .*.(gif|jpg|jpeg|png|bmp|swf)$
        {
          expires      30d;
        }
    
        location ~ .*.(js|css)?$
       {
          expires      8d;
        }
    
    
            access_log  /www/logs/wiki.talkvip.cn.nginx.access.log  main;
    
      }
  • 相关阅读:
    在单向链表中删除指定的key
    双向链表反转
    单向链表反转
    认识异或运算
    二分查找
    插入排序
    冒泡排序
    选择排序
    go 语言环境安装
    欧几里得算法
  • 原文地址:https://www.cnblogs.com/djwhome/p/9599573.html
Copyright © 2011-2022 走看看