openssl genrsa -out server.key 2048
openssl req -new -x509 -key server.key -out server.pem -days 3650
| error_log logs/error.log; | |
| events { | |
| worker_connections 1024; | |
| } | |
| http { | |
| proxy_cache_path /data/cache/page levels=1:2 keys_zone=python:10m max_size=1g inactive=5m; | |
| server { | |
| access_log logs/access.log; | |
| listen 8080; | |
| lua_code_cache off; |
| package main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| "log" | |
| "net" | |
| "os" | |
| "time" | |
| ) |
| package main | |
| import ( | |
| "crypto/tls" | |
| "crypto/x509" | |
| "flag" | |
| "io/ioutil" | |
| "log" | |
| "net/http" | |
| ) |
| type ApacheLogRecord struct { | |
| http.ResponseWriter | |
| ip string | |
| time time.Time | |
| method, uri, protocol string | |
| status int | |
| responseBytes int64 | |
| elapsedTime time.Duration | |
| } |
| ------------------------------------------------------------------------- | |
| USEFUL ONE-LINE SCRIPTS FOR SED (Unix stream editor) Dec. 29, 2005 | |
| Compiled by Eric Pement - pemente[at]northpark[dot]edu version 5.5 | |
| Latest version of this file (in English) is usually at: | |
| http://sed.sourceforge.net/sed1line.txt | |
| http://www.pement.org/sed/sed1line.txt | |
| This file will also available in other languages: | |
| Chinese - http://sed.sourceforge.net/sed1line_zh-CN.html |
| {"object": | |
| { | |
| "buffer_size": 10, | |
| "Databases": | |
| [ | |
| { | |
| "host": "localhost", | |
| "user": "root", | |
| "pass": "", | |
| "type": "mysql", |