2009至revit2014序列号 密钥之间的file viewpro 的许可证密钥是

nginx中使用rewrite模块的参数及示例-阿里云资讯网
nginx中使用rewrite模块的参数及示例
发布时间:
更新时间:
来源:网络
作者:酸奶丁丁
Rewrite模块
本文中的内容收集整理自互联网,在nginx中使用rewrite模块的一些方法、参数及示例文件,供以后学习,特归纳出来供大家来参考。 &/zixun/aggregation/37954.html&&
正则表达式匹配,其中: * ~ 为区分
写匹配 * ~* 为不区分大小写匹配 * !~和!~*分别为区分大小写不匹配及不区分大小写不匹配
文件及目录匹配,其中: * -f和!-f用来判断是否存在文件 * -d和!-d用来判断是否存在目录 * -e和!-e用来判断是否存在文件或目录 * -x和!-x用来判断文件是否可执行
flag标记有: * last 相当于Apache里的[L]标记,表示完成rewrite * break 终止匹配, 不再匹配后面的规则 * redirect 返回302临时重定向 地址栏会显示跳转后的地址 * permanent 返回301永久重定向 地址栏会显示跳转后的地址
一些可用的全局变量有,可以用做条件判断(待补全) $args $content_length $content_type $document_root $document_uri $host $http_user_
$http_cookie $limit_rate $request_body_file $request_method $remote_addr $remote_port $remote_user $request_filename $request_uri $query_string $scheme $server_protocol $server_addr $server_name $server_port $uri
结合QeePHP的例子 if (!-d $request_filename) { rewrite ^/([a-z-A-Z]+)/([a-z-A-Z]+)/?(.*)$ /index.php?namespace=user&controller=$1&action=$2&$3 rewrite ^/([a-z-A-Z]+)/?$ /index.php?namespace=user&controller=$1
多目录转成参数 /sort/2 =& /index.php?act=sort&name=abc&id=2 if ($host ~* (.*)/.domain/.com) { set $sub_name $1;& & rewrite ^/sort//(/d+)//?$ /index.php?act=sort&cid=$sub_name&id=$1 }
目录对换 /123456/xxxx -& /xxxx?id=123456 rewrite ^/(/d+)/(.+)/ /$2?id=$1
例如下面设定nginx在用户使用ie的使用重定向到/nginx-ie目录下: if ($http_user_agent ~ MSIE) { rewrite ^(.*)$ /nginx-ie/$1 }
目录自动加“/” if (-d $request_filename){ rewrite ^/(.*)([^/])$ http://$host/$1$2/ }
禁止htaccess location ~//.ht { & & & & & & & &}
禁止多个目录 location ~ ^/(cron|templates)/ { & & & & & & & &}
禁止以/data开头的文件 可以禁止/data/下多级目录下.log.txt等请求; location ~ ^/data { & & & & & & & &}
禁止单个目录 不能禁止.log.txt能请求 location /searchword/cron/ { & & & & & & & &}
禁止单个文件 location ~ /data/sql/data.sql { & & & & & & & &}
给favicon.ico和robots.txt设置过期时间; 这里为favicon.ico为99天,robots.txt为7天并不记录404错误日志 location ~(favicon.ico) { && & & & & & & & log_not_ expires 99d; & & &} & & & &location ~(robots.txt) { && & & & & & & & log_not_ expires 7d; & & &}
设定某个文件的过期时间;这里为600秒,并不记录访问日志 location ^~ /html/scripts/loadhead_1.js { && & & & & & & & access_log& & && & & & & & & & root /opt/lampp/htdocs/ expires 600; & & & &}
文件反盗链并设置过期时间 这里的return 412 为自定义的http状态码,默403,方便找出正确的盗链的请求 “rewrite ^/ /leech.”显示一张防盗链图片 “access_”不记录访问日志,压力 “expires 3d”所有文件3天的浏览器缓存 location ~* ^.+/.(jpg|jpeg|gif|png|swf|rar|zip|css|js)$ { valid_referers none blocked *. *.c1gstudio.net localhost 208.97.167.194; if ($invalid_referer) { & & rewrite ^/ /leech. & & return 412; & & } && & & & & & & & access_log& & && & & & & & & & root /opt/lampp/htdocs/ expires 3d; & & &}
只充许固定ip访问网站,并加上密码 root& /opt/htdocs/ allow& &208.97.167.194; allow& &222.33.1.2; allow& &231.152.49.4; deny& & auth_basic &C1G_ADMIN&; auth_basic_user_
将多级目录下的文件转成一个文件,增强seo效果 /job-123-456-789.html 指向/job/123/456/789.html rewrite ^/job-([0-9]+)-([0-9]+)-([0-9]+)/.html$ /job/$1/$2/jobshow_$3.
将根目录下某个文件夹指向2级目录 如/shanghaijob/ 指向 /area/shanghai/ 如果你将last改成permanent,浏览器地址栏显是/location/shanghai/ rewrite ^/([0-9a-z]+)job/(.*)$ /area/$1/$2
上面例子有个问题是访问/shanghai 时将不会匹配 rewrite ^/([0-9a-z]+)job$ /area/$1/ rewrite ^/([0-9a-z]+)job/(.*)$ /area/$1/$2
这样/shanghai 也可以访问了,但页面中的相对链接无法使用, 如./list_1.html真实地址是/area/shanghia/list_1.html会变成/list_1.html,导至无法访问。
那我加上自动跳转也是不行咯 (-d $request_filename)它有个条件是必需为真实目录,而我的rewrite不是的,没有效果 if (-d $request_filename){ rewrite ^/(.*)([^/])$ http://$host/$1$2/ }
知道原因后就好办了,让我跳转吧 rewrite ^/([0-9a-z]+)job$ /$1job/ rewrite ^/([0-9a-z]+)job/(.*)$ /area/$1/$2
文件和目录不存在的时候重定向: if (!-e $request_filename) { proxy_pass http://127.0.0.1; }
域名跳转 server && & { && & & & & & listen& & & &80; && & & & & & server_name& ; && & & & & & index index.html index.htm index. && & & & & & root& /opt/lampp/htdocs/ && & & & & & rewrite ^/ /; && & & & & & access_log& && & }
多域名转向 server_name&
www.c1gstudio. && & & & & & index index.html index.htm index. && & & & & & root& /opt/lampp/ if ($host ~ &c1gstudio/.net&) { rewrite ^(.*) $1 }
三级域名跳转 if ($http_host ~* &^(.*)/.i/.c1gstudio/.com$&) { rewrite ^(.*) http://top.
域名镜向 server && & { && & & & & & listen& & & &80; && & & & & & server_name& ; && & & & & & index index.html index.htm index. && & & & & & root& /opt/lampp/htdocs/ && & & & & & rewrite ^/(.*) /$1 && & & & & & access_log& && & }
某个子目录作镜向 location ^~ /zhaopinhui { & rewrite ^.+ / & & & &}
discuz ucenter home (uchome) rewrite rewrite ^/(space|network)-(.+)/.html$ /$1.php?rewrite=$2 rewrite ^/(space|network)/.html$ /$1. rewrite ^/([0-9]+)$ /space.php?uid=$1
discuz 7 rewrite rewrite ^(.*)/archiver/((fid|tid)-[/w/-]+/.html)$ $1/archiver/index.php?$2 rewrite ^(.*)/forum-([0-9]+)-([0-9]+)/.html$ $1/forumdisplay.php?fid=$2&page=$3 rewrite ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)/.html$ $1/viewthread.php?tid=$2&extra=page/%3D$4&page=$3 rewrite ^(.*)/profile-(username|uid)-(.+)/.html$ $1/viewpro.php?$2=$3 rewrite ^(.*)/space-(username|uid)-(.+)/.html$ $1/space.php?$2=$3 rewrite ^(.*)/tag-(.+)/.html$ $1/tag.php?name=$2
给某版块单独配置域名 server_name& & & & &location = / { & & & & if ($http_host ~ news/.$) { & rewrite ^.+ /forum-831-1. & } & & &}
discuz ucenter 头像 rewrite 优化 location ^~ /ucenter { & & &location ~ .*/.php?$ & & &{ & #fastcgi_pass& unix:/tmp/php-cgi. & fastcgi_pass& 127.0.0.1:
0; & fastcgi_index index. & include fcgi.& & & & & &} & & & &location /ucenter/data/avatar { log_not_ access_log& & location ~ /(.*)_big/.jpg$ { & & error_page 404 /ucenter/images/noavatar_big. } location ~ /(.*)_middle/.jpg$ { & & error_page 404 /ucenter/images/noavatar_middle. } location ~ /(.*)_small/.jpg$ { & & error_page 404 /ucenter/images/noavatar_small. } expires 300; & & &} && & & & & & & & & & & }
jspace rewrite location ~ .*/.php?$ && & & & & & { && & & & & & & & &#fastcgi_pass& unix:/tmp/php-cgi. && & & & & & & & &fastcgi_pass& 127.0.0.1:9000; && & & & & & & & &fastcgi_index index. && & & & & & & & &include fcgi.& & & && & & & & & } & && & & & & & location ~* ^/index.php/ && & & & & & { && &rewrite ^/index.php/(.*) /index.php?$1 && & & & & & & & &fastcgi_pass& 127.0.0.1:9000; && & & & & & & & &fastcgi_index index. && & & & & & & & &include fcgi. && & & & & & }
这些规则大家可以自己多研究一下,多中会获益很多,希望在实际的生产环境中能帮助到大家解决实际的问题,如果您有关于nginx使用经验方面的分享,欢迎登陆风信网进行投稿。
本站所有文章全部来源于互联网,版权归属于原作者。本站所有转载文章言论不代表本站观点,如是侵犯了原作者的权利请发邮件联系站长(yanjing@),我们收到后立即删除。
6月25日,“.中国”域名国际申请完成所有评审环节并最终获得ICANN理事会表决通过。 “http://清华大学.中国”———是不是看起来有一点陌生?现在,在全球任何地方的电脑浏览器的地址栏里输入这行地址,就可以访问清华大学的网站“www.”,你不再需要记住清华大学的英文名。 昨天,中国互联网络信息中心(CNNIC)主任毛伟表示,“.中国”的国际顶级中文域名已获...
  4月9日晚间消息,国内民营预防医疗服务提供机构 爱康国宾 今日正式在纳斯达克挂牌上市,交易代码为“KANG”,开盘报16.50美元,较14美元的发行价上涨18%。   今日早些时候,爱康国宾确定发行价为每美国存托股票(“ADSs”)14美元,在承销商未行使超额认购权的情况下,爱康国宾共发行10,904,846 ADS(其中7,574,446 ADS由公司发行,3,330,400 ADS由...
09年上线的Tango基于熟人社交关系提供视频通话服务,不过它现在发展得越来越像微信了,除了支持文字和语音通讯,用户可以在其中完成购买表情、消费音乐、发现应用、玩游戏等操作。就在一个月前,Tango宣布完成2.8亿美元的D轮融资,其中2.15亿美元来自阿里巴巴。Tango目前支持14种语言,共有超过2亿注册用户,月活用户达7000万,用户分布在全球224个国家,主要集中在北美、中东、台湾和新...
  3月10日上午消息,腾讯(00700.HK)今日早间发布公告称,将收购京东上市前15%股份,腾讯除了将支付2.14亿美元,还把B2C平台QQ网购和C2C平台拍拍网并入京东。随后今日腾讯股价以下跌1.7%开盘,开盘价619.5港元。   腾讯公告显示,此次交易中,京东将向腾讯发行新股。交易完成伊始,腾讯将获得京东约15%的股份。未来,腾讯将在京东进行首次公开招股时,以招股价认购京东额外的5...
Google刚刚发布了由Google与AnswerLab联合打造,名为《Principles of Mobile Site Design: Delight Users and Drive Conversions》的移动网站设计原则白皮书。白皮书提到,为了愉悦用户和推动转化率,移动网站设计应该遵循25个设计原则。 这25个设计原则涉及到主页与网站导航、网站搜索、商务与会话、表单项、可用性等5个...
Spotify,这家流媒体音乐服务商,在坐拥1000万付费用户后,正在开始尝试流媒体音乐其他的可能性。这一次,他们选择了混音软件Djay。 具体来说,Djay 现在能够使用来自 Spotify 的流媒体音乐进行混音。在此之前,Djay 只能使用用户已经在 iTunes 中购买过的音乐。不过,遗憾的是,考虑到音乐版权的问题,使用 Spotify 的资源完成混音的音乐并不能够直接与其他人分享,或...收藏到: &
(提示:顶到域名世界首页,分享给更多网友)&&
欢迎您就本域名知识点留言评论!
您的姓名:
* 可选项,留空即为匿名发表
评论内容:
剩余字数:& * 按 Ctrl + Enter 直接发送.
域名世界提醒您:评论只需提交一次,请耐心等候,审核后方可显示.
精彩域名知识
域名世界推荐范冰冰苹果电影未删版,凉宫春日的忧郁2009
友情链接:file viewpro原版 - 下载频道
- CSDN.NET
&&&&file viewpro原版
file viewpro原版
这个是原版,不过需要注册,很完美!用起来也得心应手!喜欢的请下载!
若举报审核通过,可奖励20下载分
被举报人:
举报的资源分:
请选择类型
资源无法下载
资源无法使用
标题与实际内容不符
含有危害国家安全内容
含有反动色情等内容
含广告内容
版权问题,侵犯个人或公司的版权
*详细原因:
您可能还需要
安全技术下载排行

我要回帖

更多关于 sql2014密钥 的文章

 

随机推荐