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; }

最新文章

  1. hadoop入门(3)——hadoop2.0理论基础:安装部署方法
  2. vim 大全用法
  3. APS.net controller
  4. SharePoint 2013 Nintex Workflow 工作流帮助(十)
  5. js 平滑定位
  6. 关于.ToList(): LINQ to Entities does not recognize the method ‘xxx’ method, and this method cannot be translated into a store expression.
  7. spf13配置问题
  8. perl 5.22手动安装Mysql DBI和DBD
  9. Starting MySQL.. ERROR! The server quit without updating PID file (/usr/local/mysql/var/AYXXXXXXXXXXX.pid). 错误解决方法
  10. 如何更改mysql可执行路径及更改mysql数据库文件路径
  11. Linux系统监控命令
  12. 基于Modbus的C#串口调试开发
  13. oracle12c各个版本对其需要的依赖包及系统参数的修改
  14. vue通过id从列表页跳转到对应的详情页
  15. powerdesigner生成mysql带注释的ER图
  16. 四:(之九_容器资源限制)Dockerfile语法梳理和实践
  17. eclipse team 没有svn
  18. 怎么让table中的<td>内容向上对齐
  19. HDU4288-STL模拟
  20. bzoj3920: Yuuna的礼物(莫队+分块套分块)

热门文章

  1. RC 522模块在LINUX平台调试笔记
  2. Python学习札记(二十七) 函数式编程8 偏函数
  3. HDU 4714 Treecycle(树形dp)
  4. 这是一份很详细的 Retrofit 2.0 使用教程(含实例讲解)
  5. Solaris11 Vsphere client tool 的鼠标问题
  6. notepad++支持自定义文件类型
  7. tortoiseGIT保存用户名密码
  8. java的初始化(编程思想)
  9. Linux wget auto login and backup database
  10. BZOJ4978: [Lydsy1708月赛]泛化物品(乱搞)