程序猿的小本本
last update:
linux建站推荐,美国免备案VPS
核心配置代码 server { listen 8080;#监听端口 client_body_timeout 60000;#超时 client_max_body_size 1024m; send_timeout 60000; client_header_buffer_size 16k; large_client_header_buffers 4 64k; proxy_headers_hash_bucket_size 1024; proxy_headers_hash_max_size 4096; proxy_read_timeout 60000; proxy_send_timeout 60000; location / { auth_basic "Please input your password:"; auth_basic_user_file /usr/share/nginx/htpasswd; resolver 8.8.8.8; proxy_pass http://$http_host$request_uri; } } 说明auth_basic_user_file指向你生成的密码文件,这个文件是由apache的htpasswd生成的。 用法如下: htpasswd -c /usr/share/nginx/authdb liming 实际路径根据实际情况,如果没有htpasswd,可以先行安装apache。或者参考http://blog.csdn.net/stevenprime/article/details/7776713 他是写了一个perl脚本
推荐一个网站: http://www.nirsoft.net nirsoft开发了很多体积小又实用的windows软件,而且基本都是免费的。 涵盖网络、注册表、磁盘、系统、路由、服务等等,基本上windows上开发所涉及的都有工具。 这里可以下载工具合集 语言包需要单独下载,并解压缩到软件集合(里边有很多exe)文件夹中 Japanese Simplified Chinese Traditional Chinese