Look at LSB init scripts for more information.
Copy to /etc/init.d:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)Look at LSB init scripts for more information.
Copy to /etc/init.d:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)| 1 普通匹配,遵循最长匹配规则,假设一个请求匹配到了两个普通规则,则选择匹配长度大的那个 | |
| 例如: | |
| location /{ | |
| [matches] | |
| } | |
| location /test{ | |
| [matches] | |
| } | |
| 2 精确匹配 | |
| location = /{ |
| #!/bin/bash | |
| ### Set Language | |
| TEXTDOMAIN=virtualhost | |
| ### Set default parameters | |
| action=$1 | |
| domain=$2 | |
| port=$3 | |
| rootDir=$4 | |
| owner=$(who am i | awk '{print $1}') |
| #!/bin/bash | |
| ### Set Language | |
| TEXTDOMAIN=virtualhost | |
| ### Set default parameters | |
| action=$1 | |
| domain=$2 | |
| port=$3 | |
| rootDir=$4 | |
| owner=$(who am i | awk '{print $1}') |
| #!/bin/bash | |
| apt-get update | |
| apt-get install -y pptpd | |
| echo "localip 192.168.0.1" >> /etc/pptpd.conf | |
| echo "remoteip 192.168.0.128-255" >> /etc/pptpd.conf | |
| echo "ms-dns 8.8.8.8" >> /etc/ppp/pptpd-options |
| var mocks = { | |
| resizeCalled: false, | |
| createFakeWindow: function(width, height) { | |
| var module = this; | |
| return { | |
| document: { | |
| documentElement: { | |
| clientWidth: width, |
| function getRandomInt(min, max) { | |
| return Math.floor(Math.random() * (max - min + 1)) + min; | |
| } | |
| function generatorRandomString() { | |
| return Math.random().toString(36).substr(2,6); | |
| } | |
| function generatorEmailSuffix() { | |
| var domains = ['.com', '.net', '.org', '.cc', '.edu', '.cn'], |
| var http = require('http'); | |
| var NG_PREFIX = ")]}',\n"; | |
| http.ServerResponse.prototype.ngJSON = function(obj){ | |
| // allow status / body | |
| if (2 == arguments.length) { | |
| // res.json(body, status) backwards compat | |
| if ('number' == typeof arguments[1]) { | |
| this.statusCode = arguments[1]; |
| #!/bin/sh | |
| # | |
| # An example hook script to verify what is about to be committed. | |
| # Called by "git commit" with no arguments. The hook should | |
| # exit with non-zero status after issuing an appropriate message if | |
| # it wants to stop the commit. | |
| # | |
| # To enable this hook, rename this file to "pre-commit". | |
| if git rev-parse --verify HEAD >/dev/null 2>&1 |