Chinaunix首页 | 论坛 | 博客
  • 博客访问: 212661
  • 博文数量: 49
  • 博客积分: 1532
  • 博客等级: 上尉
  • 技术积分: 352
  • 用 户 组: 普通用户
  • 注册时间: 2007-10-17 13:37
个人简介

..................................

文章分类

全部博文(49)

文章存档

2023年(1)

2020年(2)

2019年(2)

2018年(17)

2017年(15)

2016年(12)

发布时间:2017-08-07 10:52:09

Nginx 会在 http 头,或者出现错误页的时候会有醒目的版本号提示。为了安全,可以关闭这些信息。方法很简单,只需在 nginx.conf 的 http {  里头加入 server_tokens 的参数例如:http {include mime.types;default_type application/octet-stream;server_tokens off; #关闭版本显示client_header_t.........【阅读全文】

阅读(1034) | 评论(0) | 转发(0)

发布时间:2017-08-07 10:50:11

Nginx 会在 http 头,或者出现错误页的时候会有醒目的版本号提示。为了安全,可以关闭这些信息。方法很简单,只需在 nginx.conf 的 http {  里头加入 server_tokens 的参数例如:http {include mime.types;default_type application/octet-stream;server_tokens off; #关闭版本显示client_header.........【阅读全文】

阅读(957) | 评论(0) | 转发(0)

发布时间:2017-07-26 18:23:35

有的时候需要用python处理二进制数据,比如,存取文件,socket操作时.这时候,可以使用python的struct模块来完成.可以用 struct来处理c语言中的结构体. struct模块中最重要的三个函数是pack(), unpack(), calcsize()pack(fmt, v1, v2, ...)     按照给定的格式(fmt),把数据封装成字符.........【阅读全文】

阅读(852) | 评论(0) | 转发(0)

发布时间:2017-07-21 16:28:26

ngrok不能少。ngrok以及其服务端ngrokd都是开源的,之前我也知道通过源码可以自搭建ngrok服务。请求搜索引擎后,发现国内有个朋友已经搭建了一个www.tunnel.mobi的ngrok公共服务,与ngrok.com类似,我也实验了一下。server_addr: "tunnel.mobi:44433"trust_host_root_certs: true$ngrok -subdomain tonybaiexamp.........【阅读全文】

阅读(720) | 评论(0) | 转发(0)

发布时间:2017-07-19 16:54:30

[1].[代码] 以下的内容就是在Tomcat的webapps目录下新建一个www文件夹作为www.oschina.net这个域名的主目录<Host name="www.oschina.net" debug="0" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false"  xmlNamespaceAware="false">     <Context path="" docBase="ww.........【阅读全文】

阅读(598) | 评论(0) | 转发(0)
给主人留下些什么吧!~~

flyfreebsd2017-08-09 15:42

回复  |  举报

flb_20012010-03-09 07:33

回复  |  举报

一路征程一路笑2010-03-05 11:42

回复  |  举报

flyfreebsd2008-08-26 09:26

a

回复  |  举报
留言热议
请登录后留言。

登录 注册